|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.events.EventServiceImplementation
public class EventServiceImplementation
Event Service Implementation singleton, that manages J2SSH Event Listeners, and allows events to be fired.
| Constructor Summary | |
|---|---|
protected |
EventServiceImplementation()
|
| Method Summary | |
|---|---|
void |
addListener(java.lang.String threadPrefix,
EventListener listener)
Add a J2SSH Listener to the list of listeners that will be sent events |
void |
fireEvent(Event evt)
Send an SSH Event to each registered listener |
static EventService |
getInstance()
Get the event service instance |
void |
removeListener(java.lang.String threadPrefix)
Remove an EventListener from the list of listeners that are sent events |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EventServiceImplementation()
| Method Detail |
|---|
public static EventService getInstance()
public void addListener(java.lang.String threadPrefix,
EventListener listener)
addListener in interface EventServicethreadPrefix - listen to threads whose name have this prefix, string must not contain any '-' except the final character which must be a '-'.listener - public void removeListener(java.lang.String threadPrefix)
removeListener in interface EventServicepublic void fireEvent(Event evt)
fireEvent in interface EventServiceevt - event to fire to all listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||