Interface ResourceContextListener
-
public interface ResourceContextListener
A
ResourceContextListener
is notified whenever:- a
ResourceContext
is 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_CONTEXT
property 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.String
RESOURCE_CONTEXT
Property 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 void
notify(ResourceContextEvent event)
Notify this listener about aResourceContext
events.
-
-
-
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 aResourceContext
events.- Parameters:
event
- event.
-
-