public final class SimpleResourceParameterResolverFactory extends ParameterResolverFactory
Modifier and Type | Method and Description |
---|---|
protected 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. |
static void |
register(Collection<?> injectableResources)
Registers the given
injectableResources for the ParameterResolverFactory. |
boolean |
supportsPayloadResolution()
Indicates whether this resolver may be used to resolve the payload parameter of an annotated handler method.
|
createPayloadResolver, findParameterResolver, registerChangeListener, registerFactory, unregisterFactory
public static void register(Collection<?> injectableResources)
injectableResources
for the ParameterResolverFactory. This method must be
called before any annotated handlers are registered. Handlers that have been registered before will not
have their parameter eligible for injection by this factory.injectableResources
- The resources eligible for injection. Each resource is evaluated in the order
provided by the iterator of the given collection.public boolean supportsPayloadResolution()
ParameterResolverFactory
supportsPayloadResolution
in class ParameterResolverFactory
protected 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 class ParameterResolverFactory
memberAnnotations
- annotations placed on the member (e.g. method)parameterType
- the parameter type to find a resolver forparameterAnnotations
- annotations places on the parameternull
if none is foundCopyright © 2010-2013. All Rights Reserved.