A
- The type of annotation to check forP
- The type the parameter needs to be assignable from.public abstract class AbstractAnnotatedParameterResolverFactory<A,P> extends Object implements ParameterResolverFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnnotatedParameterResolverFactory(Class<A> annotationType,
Class<P> declaredParameterType)
Initialize a ParameterResolverFactory instance that resolves parameters of type
declaredParameterType annotated with the given annotationType . |
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. |
protected abstract ParameterResolver<P> |
getResolver() |
protected AbstractAnnotatedParameterResolverFactory(Class<A> annotationType, Class<P> declaredParameterType)
declaredParameterType
annotated with the given annotationType
.annotationType
- the type of annotation that a prospective parameter should declaredeclaredParameterType
- the type that the parameter value should be assignable toprotected abstract ParameterResolver<P> getResolver()
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 parameternull
if none is foundCopyright © 2010-2014. All Rights Reserved.