Package org.osgi.framework.hooks.service
Interface EventHook
public interface EventHook
OSGi Framework Service Event Hook Service.
Bundles registering this service will be called during framework service (register, modify, and unregister service) operations.
- Version:
- $Revision: 6967 $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
event
(ServiceEvent event, Collection contexts) Event hook method.
-
Method Details
-
event
Event hook method. This method is called prior to service event delivery when a publishing bundle registers, modifies or unregisters a service. This method can filter the bundles which receive the event.- Parameters:
event
- The service event to be delivered.contexts
- ACollection
of Bundle Contexts for bundles which have listeners to which the specified event will be delivered. The implementation of this method may remove bundle contexts from the collection to prevent the event from being delivered to the associated bundles. The collection supports all the optionalCollection
operations exceptadd
andaddAll
. Attempting to add to the collection will result in anUnsupportedOperationException
. The collection is not synchronized.
-