org.axonframework.common.annotation
Class DefaultParameterResolverFactory
java.lang.Object
org.axonframework.common.annotation.DefaultParameterResolverFactory
- All Implemented Interfaces:
- ParameterResolverFactory
public class DefaultParameterResolverFactory
- extends Object
- implements ParameterResolverFactory
Factory for the default parameter resolvers. This factory is capable for providing parameter resolvers for Message,
MetaData and @MetaData annotated parameters.
- Since:
- 2.0
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultParameterResolverFactory
public DefaultParameterResolverFactory()
createInstance
public ParameterResolver createInstance(Annotation[] methodAnnotations,
Class<?> parameterType,
Annotation[] parameterAnnotations)
- Description copied from interface:
ParameterResolverFactory
- If available, creates a ParameterResolver instance that can provide a parameter of type
parameterType
for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null
.
- Specified by:
createInstance
in interface ParameterResolverFactory
- Parameters:
methodAnnotations
- annotations placed on the member (e.g. method)parameterType
- the parameter type to find a resolver forparameterAnnotations
- annotations placed on the parameter
- Returns:
- a suitable ParameterResolver, or
null
if none is found
Copyright © 2010-2016. All Rights Reserved.