Top Description Methods
org.osgi.service.event

public Interface EventAdmin

Annotations
@ProviderType
Imports
org.osgi.annotation.versioning.ProviderType

The Event Admin service. Bundles wishing to publish events must obtain the Event Admin service and call one of the event delivery methods.
Author
$Id: 2ec34712c5331202a047b91303bf27ca0640338a $

Method Summary

Modifier and TypeMethod and Description
public void
postEvent(Event
The event to send to all listeners which subscribe to the topic of the event.
event
)

Initiate asynchronous, ordered delivery of an event.

public void
sendEvent(Event
The event to send to all listeners which subscribe to the topic of the event.
event
)

Initiate synchronous delivery of an event.

Method Detail

postEventback to summary
public void postEvent(Event event)

Initiate asynchronous, ordered delivery of an event. This method returns to the caller before delivery of the event is completed. Events are delivered in the order that they are received by this method.

Parameters
event:Event

The event to send to all listeners which subscribe to the topic of the event.

Exceptions
SecurityException:
If the caller does not have TopicPermission[topic,PUBLISH] for the topic specified in the event.
sendEventback to summary
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:Event

The event to send to all listeners which subscribe to the topic of the event.

Exceptions
SecurityException:
If the caller does not have TopicPermission[topic,PUBLISH] for the topic specified in the event.