Package org.hippoecm.hst.core.jcr
Class GenericEventListener
- java.lang.Object
-
- org.hippoecm.hst.core.jcr.GenericEventListener
-
- All Implemented Interfaces:
EventListener
public class GenericEventListener extends Object implements EventListener
TheGenericEventListener
class provides a default implementation for theEventListener
interface. This receives an event and dispatches each event to a specialized method. The child class of this class can override some methods which are related to its own interests.
-
-
Constructor Summary
Constructors Constructor Description GenericEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
eventIgnorable(Event event)
String[]
getSkipPaths()
protected boolean
isEventOnSkippedPath(Event event)
void
onEvent(EventIterator events)
protected void
onNodeAdded(Event event)
protected void
onNodeRemoved(Event event)
protected void
onPropertyAdded(Event event)
protected void
onPropertyChanged(Event event)
protected void
onPropertyRemoved(Event event)
void
setSkipPaths(String[] skipPaths)
-
-
-
Field Detail
-
skipPaths
protected String[] skipPaths
-
-
Method Detail
-
getSkipPaths
public String[] getSkipPaths()
-
setSkipPaths
public void setSkipPaths(String[] skipPaths)
-
isEventOnSkippedPath
protected boolean isEventOnSkippedPath(Event event) throws RepositoryException
- Throws:
RepositoryException
-
eventIgnorable
protected boolean eventIgnorable(Event event) throws RepositoryException
- Throws:
RepositoryException
-
onEvent
public void onEvent(EventIterator events)
- Specified by:
onEvent
in interfaceEventListener
-
onNodeAdded
protected void onNodeAdded(Event event)
-
onNodeRemoved
protected void onNodeRemoved(Event event)
-
onPropertyAdded
protected void onPropertyAdded(Event event)
-
onPropertyChanged
protected void onPropertyChanged(Event event)
-
onPropertyRemoved
protected void onPropertyRemoved(Event event)
-
-