public interface DmtEventListener
DmtEvent
objects about important changes in the tree. Events are generated after every
successful DMT change, and also when sessions are opened or closed. If a
DmtSession
is opened in atomic mode, DMT events are only sent when
the session is committed, when the changes are actually performed.
Dmt Event Listener services must have permission DmtPermission.GET
for the nodes in the nodes
and newNodes
property in the Dmt
Event.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILTER_EVENT
A number of event types packed in a bitmap.
|
static java.lang.String |
FILTER_PRINCIPAL
A number of names of principals.
|
static java.lang.String |
FILTER_SUBTREE
A number of sub-tree top nodes that define the scope of the Dmt Event
Listener.
|
Modifier and Type | Method and Description |
---|---|
void |
changeOccurred(DmtEvent event)
DmtAdmin uses this method to notify the registered listeners
about the change. |
static final java.lang.String FILTER_SUBTREE
String+
.static final java.lang.String FILTER_PRINCIPAL
Get
rights. The type of this service property is String+
.static final java.lang.String FILTER_EVENT
Integer
.void changeOccurred(DmtEvent event)
DmtAdmin
uses this method to notify the registered listeners
about the change. This method is called asynchronously from the actual
event occurrence.event
- the DmtEvent
describing the change in detailCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0