public class CurrentUnitOfWorkParameterResolverFactory extends Object implements ParameterResolverFactory, ParameterResolver
| Constructor and Description | 
|---|
CurrentUnitOfWorkParameterResolverFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
ParameterResolver | 
createInstance(Executable executable,
              Parameter[] parameters,
              int parameterIndex)
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. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportedPayloadTypepublic CurrentUnitOfWorkParameterResolverFactory()
public ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
ParameterResolverFactoryparameterType for a given message.
 
 If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null.
createInstance in interface ParameterResolverFactoryexecutable - The executable (constructor or method) to inspectparameters - The parameters on the executable to inspectparameterIndex - The index of the parameter to return a ParameterResolver fornull 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 falseCopyright © 2010–2018. All rights reserved.