org.apache.jackrabbit.jcr2spi.hierarchy
Class HierarchyEventListener
java.lang.Object
org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEventListener
- All Implemented Interfaces:
- InternalEventListener
public class HierarchyEventListener
- extends Object
- implements InternalEventListener
HierarchyEventListener
...
Method Summary |
Collection |
getEventFilters()
Returns a collection of event filters which is in use by this event
listener. |
void |
onEvent(EventBundle eventBundle)
Processes events and invalidates cached ItemState s
accordingly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HierarchyEventListener
public HierarchyEventListener(WorkspaceManager wspManager,
HierarchyManager hierarchyMgr,
CacheBehaviour cacheBehaviour)
getEventFilters
public Collection getEventFilters()
- Description copied from interface:
InternalEventListener
- Returns a collection of event filters which is in use by this event
listener. The event bundles delivered to
InternalEventListener.onEvent(org.apache.jackrabbit.spi.EventBundle)
will be filtered
using the collection returned by this method. An event is included
in an event bundles if it is accepted by at least one of the filters
returned by this method.
- Specified by:
getEventFilters
in interface InternalEventListener
- Returns:
- an unmodifiable collection of
EventFilter
s currently
in use by this event listener. - See Also:
InternalEventListener.getEventFilters()
onEvent
public void onEvent(EventBundle eventBundle)
- Processes
events
and invalidates cached ItemState
s
accordingly. Note that this performed for both local and non-local changes,
since workspace operations are reported as local changes as well and
might have invoked changes (autocreated items etc.).
- Specified by:
onEvent
in interface InternalEventListener
- Parameters:
eventBundle
- - See Also:
InternalEventListener.onEvent(EventBundle)
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.