You can configure additional
ParameterResolvers by extending the
ParameterResolverFactory class and creating a file named
/META-INF/service/org.axonframework.common.annotation.ParameterResolverFactory containing the fully qualified name of the implementing class.
At this moment, OSGi support is limited to the fact that the required headers are mentioned in the manifest file. The automatic detection of
ParameterResolverFactoryinstances works in OSGi, but due to classloader limitations, it might be necessary to copy the contents of the
/META-INF/service/org.axonframework.common.annotation.ParameterResolverFactoryfile to the OSGi bundle containing the classes to resolve parameters for (i.e. the event handler).