@Retention(value=RUNTIME) public @interface EventHandler
The user should annotate methods that serves as AEP event handlers with this annotation. Upon creation, the AEP engine searches the event handler container objects supplied to the engine constructor for methods that are annotated with this annotation. This annotation can be applied on a method with the following arguments:
MessageView
as its (only) argument in which case
it is treated as a message handler i.e. inbound messages are dispatched to the
annotated method
MessageView
as its first argument and
an IStoreObject
of the same type as returned by a State Replication
application's IAepApplicationStateFactory.createState(MessageView)
method,
in which case it is treated as a message handler that is additionally passed the
AEP managed state for the application.
IEvent
object as its (only) argument in which case the
method is treated as the handler for the same event type as the method
argument.
public abstract String source
public abstract boolean localOnly
This is currently an experimental feature that is still in incubation. It may be changed or removed in future releases.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.