Annotation Interface UponBabelEvent


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface UponBabelEvent
Marks a method as a handler for a ProtocolEvent.

The annotated method must accept exactly one parameter whose type is a concrete subtype of ProtocolEvent and be public. The runtime uses the parameter type to dispatch events of that specific type to this method.

@UponBabelEvent
public void onMyTimer(MyTimerEvent event) { ... }