public interface ParameterResolverFactory
Message
.
One of the implementations is the ClasspathParameterResolverFactory
, which allows application developers to
provide custom ParameterResolverFactory implementations using the ServiceLoader mechanism. To do so, place a file
called org.axonframework.common.annotation.ParameterResolverFactory
in the
META-INF/services
folder. In this file, place the fully qualified class names of all available
implementations.
The factory implementations must be public, non-abstract, have a default public constructor and implement the
ParameterResolverFactory interface.ClasspathParameterResolverFactory
Modifier and Type | Method and Description |
---|---|
ParameterResolver |
createInstance(Annotation[] memberAnnotations,
Class<?> parameterType,
Annotation[] parameterAnnotations)
If available, creates a ParameterResolver instance that can provide a parameter of type
parameterType for a given message. |
ParameterResolver createInstance(Annotation[] memberAnnotations, Class<?> parameterType, Annotation[] parameterAnnotations)
parameterType
for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null
.memberAnnotations
- annotations placed on the member (e.g. method)parameterType
- the parameter type to find a resolver forparameterAnnotations
- annotations placed on the parameternull
if none is foundCopyright © 2010-2014. All Rights Reserved.