public class EventServiceImplementation extends Object implements EventService
Modifier | Constructor and Description |
---|---|
protected |
EventServiceImplementation() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(EventListener listener)
Add a MaverickListener to the list of objects that will be sent
MaverickEvents.
|
void |
addListener(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(String threadPrefix)
Remove an EventListener from the list of listeners that are sent events
|
public static EventService getInstance()
public void addListener(String threadPrefix, EventListener listener)
addListener
in interface EventService
threadPrefix
- 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(String threadPrefix)
removeListener
in interface EventService
public void fireEvent(Event evt)
fireEvent
in interface EventService
evt
- event to fire to all listenerpublic void addListener(EventListener listener)
EventService
addListener
in interface EventService
listener
- listener to addCopyright © 2014. All rights reserved.