Class DefaultEventHandler
java.lang.Object
org.apache.jackrabbit.oak.plugins.observation.DefaultEventHandler
- All Implemented Interfaces:
EventHandler
- Direct Known Subclasses:
FilteredHandler
Default implementation of
EventHandler that
does nothing.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled before the given before and after states are compared.getChildHandler(String name, NodeState before, NodeState after) Returns a handler of events within the given child node, ornullif changes within that child are not to be processed.voidCalled after the given before and after states are compared.voidNotification for an added nodevoidnodeDeleted(String name, NodeState before) Notification for a deleted nodevoidNotification for a moved nodevoidnodeReordered(String destName, String name, NodeState reordered) Notification for a reordered nodevoidpropertyAdded(PropertyState after) Notification for an added propertyvoidpropertyChanged(PropertyState before, PropertyState after) Notification for a changed propertyvoidpropertyDeleted(PropertyState before) Notification for a deleted property
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultEventHandler
public DefaultEventHandler()
-
-
Method Details
-
enter
Description copied from interface:EventHandlerCalled before the given before and after states are compared. The implementation can use this method to initialize any internal state needed for processing the results of the comparison.- Specified by:
enterin interfaceEventHandler- Parameters:
before- before state, non-existent if this node was addedafter- after state, non-existent if this node was removed
-
leave
Description copied from interface:EventHandlerCalled after the given before and after states are compared. The implementation can use this method to post-process information collected during the content diff.- Specified by:
leavein interfaceEventHandler- Parameters:
before- before state, non-existent if this node was addedafter- after state, non-existent if this node was removed
-
getChildHandler
Description copied from interface:EventHandlerReturns a handler of events within the given child node, ornullif changes within that child are not to be processed.- Specified by:
getChildHandlerin interfaceEventHandler- Parameters:
name- name of the child nodebefore- before state of the child node, possibly non-existentafter- after state of the child node, possibly non-existent- Returns:
this
-
propertyAdded
Description copied from interface:EventHandlerNotification for an added property- Specified by:
propertyAddedin interfaceEventHandler- Parameters:
after- added property
-
propertyChanged
Description copied from interface:EventHandlerNotification for a changed property- Specified by:
propertyChangedin interfaceEventHandler- Parameters:
before- property before the changeafter- property after the change
-
propertyDeleted
Description copied from interface:EventHandlerNotification for a deleted property- Specified by:
propertyDeletedin interfaceEventHandler- Parameters:
before- deleted property
-
nodeAdded
Description copied from interface:EventHandlerNotification for an added node- Specified by:
nodeAddedin interfaceEventHandler- Parameters:
name- name of the nodeafter- added node
-
nodeDeleted
Description copied from interface:EventHandlerNotification for a deleted node- Specified by:
nodeDeletedin interfaceEventHandler- Parameters:
name- name of the deleted nodebefore- deleted node
-
nodeMoved
Description copied from interface:EventHandlerNotification for a moved node- Specified by:
nodeMovedin interfaceEventHandler- Parameters:
sourcePath- source of the moved nodename- name of the moved nodemoved- moved node
-
nodeReordered
Description copied from interface:EventHandlerNotification for a reordered node- Specified by:
nodeReorderedin interfaceEventHandler- Parameters:
destName- name of theorderBefore()destination nodename- name of the moved nodereordered- moved node
-