Interface ResourceContextListener
public interface ResourceContextListener
A ResourceContextListener is notified whenever:
- a
ResourceContextis created or deleted. - a bundle is added or removed from a
ResourceContext.
A ResourceContextListener is registered as an OSGi service. At
registration time, the following property may be provided:
- the
RESOURCE_CONTEXTproperty which limits the Resource Context for which notifications will be received. This property can be either a String value or an array of String. If this property is not set, the Resource Context Listener receives events from all the Resource Context.
- Version:
- 1.0
- Author:
- $Id: ee28cc1adc0655d33c1cb35e248fe36ade507c16 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty specifying theResourceContext(s) for which a notification will be received by this listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidnotify(ResourceContextEvent event) Notify this listener about aResourceContextevents.
-
Field Details
-
RESOURCE_CONTEXT
Property specifying the
ResourceContext(s) for which a notification will be received by this listener.The property value is either a string (i.e the name of the
ResourceContext) and an array of string (severalResourceContext).- See Also:
-
-
Method Details
-
notify
Notify this listener about aResourceContextevents.- Parameters:
event- event.
-