|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.common.annotation.MultiParameterResolverFactory
public class MultiParameterResolverFactory
ParameterResolverFactory instance that delegates to multiple other instances, in the order provided.
Constructor Summary | |
---|---|
MultiParameterResolverFactory(List<ParameterResolverFactory> delegates)
Initializes an instance that delegates to the given delegates , in the order provided. |
|
MultiParameterResolverFactory(ParameterResolverFactory... delegates)
Initializes an instance that delegates to the given delegates , in the order provided. |
Method Summary | |
---|---|
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. |
List<ParameterResolverFactory> |
getDelegates()
Returns the delegates of this instance, in the order they are evaluated to resolve parameters. |
static MultiParameterResolverFactory |
ordered(List<ParameterResolverFactory> delegates)
Creates a MultiParameterResolverFactory instance with the given delegates , which are automatically
ordered based on the @Priority annotation on their respective classes. |
static MultiParameterResolverFactory |
ordered(ParameterResolverFactory... delegates)
Creates a MultiParameterResolverFactory instance with the given delegates , which are automatically
ordered based on the @Priority annotation on their respective classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiParameterResolverFactory(ParameterResolverFactory... delegates)
delegates
, in the order provided. Changes in
the given array are not reflected in the created instance.
delegates
- The factories providing the parameter values to usepublic MultiParameterResolverFactory(List<ParameterResolverFactory> delegates)
delegates
, in the order provided. Changes in
the given List are not reflected in the created instance.
delegates
- The list of factories providing the parameter values to useMethod Detail |
---|
public static MultiParameterResolverFactory ordered(ParameterResolverFactory... delegates)
delegates
, which are automatically
ordered based on the @Priority
annotation on their respective classes.
Classes with the same Priority are kept in the order as provided in the delegates
.
If one of the delegates is a MultiParameterResolverFactory itself, that factory's delegates are 'mixed' with
the given delegates
, based on their respective order.
delegates
- The delegates to include in the factory
delegates
public static MultiParameterResolverFactory ordered(List<ParameterResolverFactory> delegates)
delegates
, which are automatically
ordered based on the @Priority
annotation on their respective classes.
Classes with the same Priority are kept in the order as provided in the delegates
.
If one of the delegates is a MultiParameterResolverFactory itself, that factory's delegates are 'mixed' with
the given delegates
, based on their respective order.
delegates
- The delegates to include in the factory
delegates
public List<ParameterResolverFactory> getDelegates()
public ParameterResolver createInstance(Annotation[] memberAnnotations, Class<?> parameterType, Annotation[] parameterAnnotations)
ParameterResolverFactory
parameterType
for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null
.
createInstance
in interface ParameterResolverFactory
memberAnnotations
- annotations placed on the member (e.g. method)parameterType
- the parameter type to find a resolver forparameterAnnotations
- annotations placed on the parameter
null
if none is found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |