public class GenericEventListener extends Object implements javax.jcr.observation.EventListener
GenericEventListener
class provides a default implementation for
the EventListener
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 and Description |
---|
GenericEventListener() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
eventIgnorable(javax.jcr.observation.Event event) |
String[] |
getSkipPaths() |
protected boolean |
isEventOnSkippedPath(javax.jcr.observation.Event event) |
void |
onEvent(javax.jcr.observation.EventIterator events) |
protected void |
onNodeAdded(javax.jcr.observation.Event event) |
protected void |
onNodeRemoved(javax.jcr.observation.Event event) |
protected void |
onPropertyAdded(javax.jcr.observation.Event event) |
protected void |
onPropertyChanged(javax.jcr.observation.Event event) |
protected void |
onPropertyRemoved(javax.jcr.observation.Event event) |
void |
setSkipPaths(String[] skipPaths) |
protected String[] skipPaths
public String[] getSkipPaths()
public void setSkipPaths(String[] skipPaths)
protected boolean isEventOnSkippedPath(javax.jcr.observation.Event event) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected boolean eventIgnorable(javax.jcr.observation.Event event) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void onEvent(javax.jcr.observation.EventIterator events)
onEvent
in interface javax.jcr.observation.EventListener
protected void onNodeAdded(javax.jcr.observation.Event event)
protected void onNodeRemoved(javax.jcr.observation.Event event)
protected void onPropertyAdded(javax.jcr.observation.Event event)
protected void onPropertyChanged(javax.jcr.observation.Event event)
protected void onPropertyRemoved(javax.jcr.observation.Event event)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.