|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.service.cm.ConfigurationEvent
A Configuration Event.
ConfigurationEvent
objects are delivered to all registered
ConfigurationListener
service objects. ConfigurationEvents
must be asynchronously delivered in chronological order with respect to each
listener.
A type code is used to identify the type of event. The following event types are defined:
Additional event types may be defined in the future.
Security Considerations. ConfigurationEvent
objects do not
provide Configuration
objects, so no sensitive configuration
information is available from the event. If the listener wants to locate the
Configuration
object for the specified pid, it must use
ConfigurationAdmin
.
ConfigurationListener
Field Summary | |
static int |
CM_DELETED
A Configuration has been deleted. |
static int |
CM_UPDATED
A Configuration has been updated. |
Constructor Summary | |
ConfigurationEvent(ServiceReference reference,
int type,
java.lang.String factoryPid,
java.lang.String pid)
Constructs a ConfigurationEvent object from the given
ServiceReference object, event type, and pids. |
Method Summary | |
java.lang.String |
getFactoryPid()
Returns the factory pid of the associated configuration. |
java.lang.String |
getPid()
Returns the pid of the associated configuration. |
ServiceReference |
getReference()
Return the ServiceReference object of the Configuration
Admin service that created this event. |
int |
getType()
Return the type of this event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CM_UPDATED
Configuration
has been updated.
This ConfigurationEvent
type that indicates that a
Configuration
object has been updated with new properties.
An event is fired when a call to Configuration.update
successfully changes a configuration.
The value of CM_UPDATED
is 1.
public static final int CM_DELETED
Configuration
has been deleted.
This ConfigurationEvent
type that indicates that a
Configuration
object has been deleted.
An event is fired when a call to Configuration.delete
successfully deletes a configuration.
The value of CM_DELETED
is 2.
Constructor Detail |
public ConfigurationEvent(ServiceReference reference, int type, java.lang.String factoryPid, java.lang.String pid)
ConfigurationEvent
object from the given
ServiceReference
object, event type, and pids.
reference
- The ServiceReference
object of the
Configuration Admin service that created this event.type
- The event type. See getType()
.factoryPid
- The factory pid of the associated configuration if the
target of the configuration is a ManagedServiceFactory. Otherwise
null
if the target of the configuration is a
ManagedService.pid
- The pid of the associated configuration.Method Detail |
public java.lang.String getFactoryPid()
null
if the target of the configuration is a
ManagedService.public java.lang.String getPid()
public int getType()
The type values are:
public ServiceReference getReference()
ServiceReference
object of the Configuration
Admin service that created this event.
ServiceReference
object for the Configuration
Admin service that created this event.
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |