public class MultiParameterResolverFactory extends Object implements ParameterResolverFactory
| Constructor and Description |
|---|
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. |
| 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. |
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 usepublic ParameterResolver createInstance(Annotation[] memberAnnotations, Class<?> parameterType, Annotation[] parameterAnnotations)
ParameterResolverFactoryparameterType for a given message.
If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null.createInstance in interface ParameterResolverFactorymemberAnnotations - 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.