public class CurrentUnitOfWorkParameterResolverFactory extends ParameterResolverFactory implements ParameterResolver
| Constructor and Description |
|---|
CurrentUnitOfWorkParameterResolverFactory() |
| 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. |
boolean |
matches(Message message)
Indicates whether this resolver is capable of providing a value for the given
message. |
Object |
resolveParameterValue(Message message)
Resolves the parameter value to use for the given
message, or null if no suitable
parameter value can be resolved. |
boolean |
supportsPayloadResolution()
Indicates whether this resolver may be used to resolve the payload parameter of an annotated handler method.
|
createPayloadResolver, findParameterResolver, registerChangeListener, registerFactory, unregisterFactorypublic CurrentUnitOfWorkParameterResolverFactory()
public 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 class ParameterResolverFactorymemberAnnotations - 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 foundpublic Object resolveParameterValue(Message message)
ParameterResolvermessage, or null if no suitable
parameter value can be resolved.resolveParameterValue in interface ParameterResolvermessage - The message to resolve the value frompublic boolean matches(Message message)
ParameterResolvermessage.matches in interface ParameterResolvermessage - The message to evaluatetrue if this resolver can provide a value for the message, otherwise falsepublic boolean supportsPayloadResolution()
ParameterResolverFactorysupportsPayloadResolution in class ParameterResolverFactoryCopyright © 2010-2013. All Rights Reserved.