org.eclipse.swordfish.core.event
Interface EventService
- All Known Implementing Classes:
- EventServiceImpl
public interface EventService
Basic interface for sending Swordfish events inside Swordfish runtime environment
Should be implemented via delegation to
org.osgi.service.event.EventAdmin service and implementation must be registered as a OSGI service itself
under org.eclipse.swordfish.api.event.Eventrvice interface name.
|
Method Summary |
void |
postEvent(Event event)
Initiate asynchronous delivery of an event by invoking org.osgi.service.event.EventAdmin.postEvent() method. |
postEvent
void postEvent(Event event)
- Initiate asynchronous delivery of an event by invoking org.osgi.service.event.EventAdmin.postEvent() method.
Method returns to the caller before delivery of the event is completed.
Method supports events with topic name started with Swordfish prefix (org/eclipse/runtime/swordfish)
osgi Event Admin methanizm using for broadcasting Swordfish events. Swordfish broadcasts as
org.osgi.service.event.Event property with name specified
in org.osgi.service.event.EventConstants.EVENT constant.
- Parameters:
event - the event to be posted.