|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventListener
These will be triggered when specific events occur in the system.
| Method Summary | |
|---|---|
String[] |
getEventNamePrefixes()
This defines the events that you want to know about by event name. |
String |
getResourcePrefix()
This defines the events that you want to know about by event resource (reference). |
void |
receiveEvent(Event event)
Called when an event occurs which passes through the filters created by getEventNamePrefixes() and
getResourcePrefix(). |
| Method Detail |
|---|
String[] getEventNamePrefixes()
receiveEvent(Event) will be called whenever an event
occurs which has a name that begins with any of the strings this
method returns. Simply return an empty array if you do
not want to match events this way.
Note: Can be used with getResourcePrefix().
String getResourcePrefix()
receiveEvent(Event) will be called whenever an event
occurs which has a resource that begins with the string this
method returns. Simply return an empty string to match
no events this way.
Note: Can be used with getEventNamePrefixes().
void receiveEvent(Event event)
getEventNamePrefixes() and
getResourcePrefix().
event - includes all the information related to the event that occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||