org.apache.jackrabbit.jcr2spi.observation
Interface InternalEventListener

All Known Implementing Classes:
HierarchyEventListener, ObservationManagerImpl

public interface InternalEventListener

InternalEventListener receives changes as a result of a local or an external modification.


Method Summary
 Collection<EventFilter> getEventFilters()
          Returns a collection of event filters which is in use by this event listener.
 void onEvent(EventBundle eventBundle)
          Gets called when an event occurs.
 

Method Detail

onEvent

void onEvent(EventBundle eventBundle)
Gets called when an event occurs.

Parameters:
eventBundle - the event set received.

getEventFilters

Collection<EventFilter> getEventFilters()
Returns a collection of event filters which is in use by this event listener. The event bundles delivered to 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.

Returns:
an unmodifiable collection of EventFilters currently in use by this event listener.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.