org.yestech.event.annotation
Annotation Type RegisterEvent


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface RegisterEvent

Represents the Event to register with and the order of execution


Required Element Summary
 Class<? extends IEvent> event
          Which events the listener is listening for.
 
Optional Element Summary
 int order
          Which order is the listener fired.
 

Element Detail

event

public abstract Class<? extends IEvent> event
Which events the listener is listening for.

Returns:

order

public abstract int order
Which order is the listener fired. if this is used there must be the same number of elements as events

Returns:
the order that this listener should be fired
Default:
0


Copyright © 2010 YES Technology Association. All Rights Reserved.