You can configure additional
ParameterResolvers by extending the
ParameterResolverFactoryclass and creating a file named
/META-INF/services/org.axonframework.messaging.annotation.ParameterResolverFactorycontaining the fully qualified name of the implementing class.
CautionAt this moment, OSGi support is limited due 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/services/org.axonframework.messaging.annotation.ParameterResolverFactoryfile to the OSGi bundle containing the classes to resolve parameters for (i.e. the event handler).