|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.commandhandling.annotation.CurrentUnitOfWorkParameterResolverFactory
public class CurrentUnitOfWorkParameterResolverFactory
ParameterResolverFactory that add support for the UnitOfWork parameter type in annotated handlers.
Constructor Summary | |
---|---|
CurrentUnitOfWorkParameterResolverFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentUnitOfWorkParameterResolverFactory()
Method Detail |
---|
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 parameter
null
if none is foundpublic Object resolveParameterValue(Message message)
ParameterResolver
message
, or null
if no suitable
parameter value can be resolved.
resolveParameterValue
in interface ParameterResolver
message
- The message to resolve the value from
public boolean matches(Message message)
ParameterResolver
message
.
matches
in interface ParameterResolver
message
- The message to evaluate
true
if this resolver can provide a value for the message, otherwise false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |