com.neeve.aep.annotations
Annotation Type EventHandler


@Retention(value=RUNTIME)
public @interface EventHandler

Used to annotate a method that serves as an AEP event handler.

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. If the annotated method accepts an SMA message as its (only) argument, it is treated as a message handler i.e. inbound messages are dispatched to the annotated method. Otherwise, if the method accepts an event object as its (only) argument, then the method is treated as the handler for the same event type as the method argument. All other methods annotated with this annotated are flagged as erroneous annotations and ignored.


Optional Element Summary
 String source
           
 

source

public abstract String source
Default:
"*"


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.