org.eclipse.swordfish.internal.core.event
Class EventServiceImpl

java.lang.Object
  extended by org.eclipse.swordfish.internal.core.event.EventServiceImpl
All Implemented Interfaces:
EventService

public class EventServiceImpl
extends java.lang.Object
implements EventService


Constructor Summary
EventServiceImpl()
           
 
Method Summary
 org.osgi.service.event.EventAdmin getEventAdmin()
           
 void postEvent(Event swordfishEvent)
          Initiate asynchronous delivery of an event by invoking org.osgi.service.event.EventAdmin.postEvent() method.
 void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventServiceImpl

public EventServiceImpl()
Method Detail

getEventAdmin

public org.osgi.service.event.EventAdmin getEventAdmin()

setEventAdmin

public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)

postEvent

public void postEvent(Event swordfishEvent)
Description copied from interface: EventService
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.

Specified by:
postEvent in interface EventService
Parameters:
swordfishEvent - the event to be posted.