OSGi™ Service Platform
Release 4 Version 4.1

org.osgi.service.event
Interface EventAdmin


public interface EventAdmin

The Event Admin service. Bundles wishing to publish events must obtain the Event Admin service and call one of the event delivery methods.


Method Summary
 void postEvent(Event event)
          Initiate asynchronous delivery of an event.
 void sendEvent(Event event)
          Initiate synchronous delivery of an event.
 

Method Detail

postEvent

public void postEvent(Event event)
Initiate asynchronous delivery of an event. This method returns to the caller before delivery of the event is completed.

Parameters:
event - The event to send to all listeners which subscribe to the topic of the event.
Throws:
java.lang.SecurityException - If the caller does not have TopicPermission[topic,PUBLISH] for the topic specified in the event.

sendEvent

public void sendEvent(Event event)
Initiate synchronous delivery of an event. This method does not return to the caller until delivery of the event is completed.

Parameters:
event - The event to send to all listeners which subscribe to the topic of the event.
Throws:
java.lang.SecurityException - If the caller does not have TopicPermission[topic,PUBLISH] for the topic specified in the event.

OSGi™ Service Platform
Release 4 Version 4.1

Copyright © OSGi Alliance (2000, 2007). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0