org.axonframework.common.annotation
Class DefaultParameterResolverFactory

java.lang.Object
  extended by 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

Constructor Summary
DefaultParameterResolverFactory()
           
 
Method Summary
 ParameterResolver createInstance(Annotation[] methodAnnotations, Class<?> parameterType, Annotation[] parameterAnnotations)
          If available, creates a ParameterResolver instance that can provide a parameter of type parameterType for a given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultParameterResolverFactory

public DefaultParameterResolverFactory()
Method Detail

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 for
parameterAnnotations - annotations placed on the parameter
Returns:
a suitable ParameterResolver, or null if none is found


Copyright © 2010-2016. All Rights Reserved.