ConfigurationEvent objects are delivered to all registered
ConfigurationListener service objects. ConfigurationEvents must be
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
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CM_DELETED
A |
| public static final int | CM_LOCATION_CHANGED
The location of a |
| public static final int | CM_UPDATED
A |
| private final String | factoryPid
The factory pid associated with this event. |
| private final String | pid
The pid associated with this event. |
| private final ServiceReference | reference
The ConfigurationAdmin service which created this event. |
| private final int | type
Type of this event. |
| Access | Constructor and Description |
|---|---|
| public | ConfigurationEvent(ServiceReference<ConfigurationAdmin>
The reference, int ServiceReference object of the Configuration
Admin service that created this event.The event type. See type, String getType().The factory pid of the associated configuration if the
target of the configuration is a ManagedServiceFactory. Otherwise
factoryPid, String null if the target of the configuration is a
ManagedService.The pid of the associated configuration. pid)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: Returns the factory pid of the associated configuration if the target of the configuration is a ManagedServiceFactory. Otherwisenull if the target of the configuration is a
ManagedService.Returns the factory pid of the associated configuration. |
| public String | Returns: Returns the pid of the associated configuration.Returns the pid of the associated configuration. |
| public ServiceReference | Returns: TheServiceReference object for the Configuration Admin
service that created this event.Return the |
| public int |
| CM_DELETED | back to summary |
|---|---|
| public static final int CM_DELETED A
This | |
| CM_LOCATION_CHANGED | back to summary |
|---|---|
| public static final int CM_LOCATION_CHANGED The location of a
This
| |
| CM_UPDATED | back to summary |
|---|---|
| public static final int CM_UPDATED A
This | |
| factoryPid | back to summary |
|---|---|
| private final String factoryPid The factory pid associated with this event. | |
| pid | back to summary |
|---|---|
| private final String pid The pid associated with this event. | |
| reference | back to summary |
|---|---|
| private final ServiceReference<ConfigurationAdmin> reference The ConfigurationAdmin service which created this event. | |
| type | back to summary |
|---|---|
| private final int type Type of this event.
| |
| ConfigurationEvent | back to summary |
|---|---|
| public ConfigurationEvent(ServiceReference<ConfigurationAdmin> reference, int type, String factoryPid, String pid) Constructs a
| |
| getFactoryPid | back to summary |
|---|---|
| public String getFactoryPid() Returns the factory pid of the associated configuration.
| |
| getPid | back to summary |
|---|---|
| public String getPid() Returns the pid of the associated configuration.
| |
| getReference | back to summary |
|---|---|
| public ServiceReference Return the
| |
| getType | back to summary |
|---|---|
| public int getType() Return the type of this event. The type values are:
| |