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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property specifying theResourceContext
(s) for which a notification will be received by this listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
notify
(ResourceContextEvent event) Notify this listener about aResourceContext
events.
-
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 aResourceContext
events.- Parameters:
event
- event.
-