public interface ResourceContextListener
A ResourceContextListener
is notified whenever:
ResourceContext
is created or deleted.ResourceContext
.
A ResourceContextListener
is registered as an OSGi service. At
registration time, the following property may be provided:
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.Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_CONTEXT
Property specifying the
ResourceContext (s) for which a
notification will be received by this listener. |
Modifier and Type | Method and Description |
---|---|
void |
notify(ResourceContextEvent event)
Notify this listener about a
ResourceContext events. |
static final 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 (several
ResourceContext
).
void notify(ResourceContextEvent event)
ResourceContext
events.event
- event.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0