Package org.axonframework.modelling.saga
Class EndSagaMessageHandlerDefinition.EndSageMessageHandlingMember<T>
java.lang.Object
org.axonframework.messaging.annotation.WrappedMessageHandlingMember<T>
org.axonframework.modelling.saga.EndSagaMessageHandlerDefinition.EndSageMessageHandlingMember<T>
- Type Parameters:
T- the entity type wrapped by thisMessageHandlingMember
- All Implemented Interfaces:
MessageHandlingMember<T>
- Enclosing class:
EndSagaMessageHandlerDefinition
public static class EndSagaMessageHandlerDefinition.EndSageMessageHandlingMember<T>
extends WrappedMessageHandlingMember<T>
A
WrappedMessageHandlingMember implementation dedicated towards MessageHandlingMembers annotated
with EndSaga. After invocation of the handle(Message, Object) method, the saga's is ended
through the SagaLifecycle.end() method.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEndSageMessageHandlingMember(MessageHandlingMember<T> delegate) Initializes the member using the givendelegate. -
Method Summary
Methods inherited from class org.axonframework.messaging.annotation.WrappedMessageHandlingMember
annotationAttributes, attribute, canHandle, canHandleMessageType, canHandleType, hasAnnotation, payloadType, priority, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.messaging.annotation.MessageHandlingMember
declaringClass, signature
-
Constructor Details
-
EndSageMessageHandlingMember
Initializes the member using the givendelegate.- Parameters:
delegate- the actual message handling member to delegate to
-
-
Method Details
-
handle
Description copied from interface:MessageHandlingMemberHandles the givenmessageby invoking the appropriate method on giventarget. This may result in an exception if the given target is not capable of handling the message or if an exception is thrown during invocation of the method.- Specified by:
handlein interfaceMessageHandlingMember<T>- Overrides:
handlein classWrappedMessageHandlingMember<T>- Parameters:
message- The message to handletarget- The target to handle the message- Returns:
- The message handling result in case the invocation was successful
- Throws:
Exception- when there was a problem that prevented invocation of the method or if an exception was thrown from the invoked method
-