@Retention(value=RUNTIME) @Target(value=METHOD) public @interface CustomEventListener
The CustomEventListener annotation can be used to annotate a method that should be called when an custom event has been triggered from the frontend.
Example:
@CustomEventListener(eventName="onPause") public void onPause(TradeEvent event) { ... }
Note that to receive a custom event, you will need to add the appropriate states and transitions to your trade model xml.
public abstract String eventName
Copyright © 2015 Caplin Systems.