T
- the entity type wrapped by this MessageHandlingMember
public static class EndSagaMessageHandlerDefinition.EndSageMessageHandlingMember<T> extends WrappedMessageHandlingMember<T>
WrappedMessageHandlingMember
implementation dedicated towards MessageHandlingMember
s annotated
with EndSaga
. After invocation of the handle(Message, Object)
method, the saga's is ended
through the SagaLifecycle.end()
method.Modifier | Constructor and Description |
---|---|
protected |
EndSageMessageHandlingMember(MessageHandlingMember<T> delegate)
Initializes the member using the given
delegate . |
Modifier and Type | Method and Description |
---|---|
Object |
handle(Message<?> message,
T target)
Handles the given
message by invoking the appropriate method on given target . |
annotationAttributes, attribute, canHandle, canHandleMessageType, canHandleType, hasAnnotation, payloadType, priority, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declaringClass, signature
protected EndSageMessageHandlingMember(MessageHandlingMember<T> delegate)
delegate
.delegate
- the actual message handling member to delegate topublic Object handle(@Nonnull Message<?> message, @Nullable T target) throws Exception
MessageHandlingMember
message
by invoking the appropriate method on given target
. 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.handle
in interface MessageHandlingMember<T>
handle
in class WrappedMessageHandlingMember<T>
message
- The message to handletarget
- The target to handle the messageException
- when there was a problem that prevented invocation of the method or if an exception was thrown
from the invoked methodCopyright © 2010–2024. All rights reserved.