|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.jcr2spi.observation.ObservationManagerImpl
public class ObservationManagerImpl
ObservationManagerImpl
...
Constructor Summary | |
---|---|
ObservationManagerImpl(WorkspaceManager wspManager,
NamePathResolver resolver,
NodeTypeRegistry ntRegistry)
Creates a new observation manager for session . |
Method Summary | |
---|---|
void |
addEventListener(EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuids,
String[] nodeTypeNames,
boolean noLocal)
|
Collection |
getEventFilters()
Returns a collection of event filters which is in use by this event listener. |
EventListenerIterator |
getRegisteredEventListeners()
|
void |
onEvent(EventBundle eventBundle)
Gets called when an event occurs. |
void |
removeEventListener(EventListener listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObservationManagerImpl(WorkspaceManager wspManager, NamePathResolver resolver, NodeTypeRegistry ntRegistry)
session
.
wspManager
- the WorkspaceManager.resolver
- ntRegistry
- The NodeTypeRegistry
of the session.Method Detail |
---|
public void addEventListener(EventListener listener, int eventTypes, String absPath, boolean isDeep, String[] uuids, String[] nodeTypeNames, boolean noLocal) throws RepositoryException
addEventListener
in interface ObservationManager
RepositoryException
public void removeEventListener(EventListener listener) throws RepositoryException
removeEventListener
in interface ObservationManager
RepositoryException
public EventListenerIterator getRegisteredEventListeners() throws RepositoryException
getRegisteredEventListeners
in interface ObservationManager
RepositoryException
public Collection getEventFilters()
InternalEventListener
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.
getEventFilters
in interface InternalEventListener
EventFilter
s currently
in use by this event listener.public void onEvent(EventBundle eventBundle)
InternalEventListener
onEvent
in interface InternalEventListener
eventBundle
- the event set received.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |