Interface ResourceContextListener
-
public interface ResourceContextListenerA
ResourceContextListeneris notified whenever:- a
ResourceContextis created or deleted. - a bundle is added or removed from a
ResourceContext.
A
ResourceContextListeneris 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 $
- a
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCE_CONTEXTProperty specifying theResourceContext(s) for which a notification will be received by this listener.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotify(ResourceContextEvent event)Notify this listener about aResourceContextevents.
-
-
-
Field Detail
-
RESOURCE_CONTEXT
static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
notify
void notify(ResourceContextEvent event)
Notify this listener about aResourceContextevents.- Parameters:
event- event.
-
-