public class EventServiceImpl extends Object implements EventService, EventManager
Constructor and Description |
---|
EventServiceImpl(org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(EventListener listener)
Add this listener to the manager
|
void |
dispose() |
protected void |
eventStored(Event event) |
void |
publishEvent(Event event)
Publish the provided event
|
void |
removeEventListener(EventListener listener) |
protected void |
setStorage(Storage service) |
public EventServiceImpl(org.osgi.framework.BundleContext context) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
protected void eventStored(Event event)
public void dispose()
protected void setStorage(Storage service)
public void publishEvent(Event event)
EventService
publishEvent
in interface EventService
event
- the event to publishpublic void addEventListener(EventListener listener)
EventManager
If the listener was already added the request will be ignored.
If the listener was added to the manager, all current known events have to be provided to the listener.
addEventListener
in interface EventManager
listener
- the listener to addpublic void removeEventListener(EventListener listener)
removeEventListener
in interface EventManager
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.