|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.state.StateChangeDispatcher
public class StateChangeDispatcher
Component that holds references to listeners interested in changes to item states and dispatches notifications.
Constructor Summary | |
---|---|
StateChangeDispatcher()
|
Method Summary | |
---|---|
void |
addListener(ItemStateListener listener)
Add an ItemStateListener . |
void |
notifyNodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Notify listeners about changes to some state. |
void |
notifyNodeModified(NodeState state)
Notify listeners about changes to some state. |
void |
notifyNodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Notify listeners about changes to some state. |
void |
notifyNodesReplaced(NodeState state)
Notify listeners about changes to some state. |
void |
notifyStateCreated(ItemState created)
Notify listeners about changes to some state. |
void |
notifyStateDestroyed(ItemState destroyed)
Notify listeners about changes to some state. |
void |
notifyStateDiscarded(ItemState discarded)
Notify listeners about changes to some state. |
void |
notifyStateModified(ItemState modified)
Notify listeners about changes to some state. |
void |
removeListener(ItemStateListener listener)
Remove an ItemStateListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateChangeDispatcher()
Method Detail |
---|
public void addListener(ItemStateListener listener)
ItemStateListener
.
listener
- the new listener to be informed on modificationspublic void removeListener(ItemStateListener listener)
ItemStateListener
listener
- an existing listenerpublic void notifyStateCreated(ItemState created)
created
- created state.public void notifyStateModified(ItemState modified)
modified
- modified state.public void notifyStateDestroyed(ItemState destroyed)
destroyed
- destroyed state.public void notifyStateDiscarded(ItemState discarded)
discarded
- discarded state.public void notifyNodeAdded(NodeState state, Name name, int index, NodeId id)
state
- node state that changedname
- name of node that was addedindex
- index of new nodeid
- id of new nodepublic void notifyNodesReplaced(NodeState state)
state
- node state that changedpublic void notifyNodeModified(NodeState state)
state
- node state that changedpublic void notifyNodeRemoved(NodeState state, Name name, int index, NodeId id)
state
- node state that changedname
- name of node that was addedindex
- index of new nodeid
- id of new node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |