org.apache.sling.jcr.resource.internal
Class JcrResourceListener
java.lang.Object
org.apache.sling.jcr.resource.internal.JcrResourceListener
- All Implemented Interfaces:
- javax.jcr.observation.EventListener
public class JcrResourceListener
- extends Object
- implements javax.jcr.observation.EventListener
The JcrResourceListener
listens for JCR observation
events and creates resource events which are sent through the
OSGi event admin.
Method Summary |
void |
dispose()
Dispose this listener. |
void |
onEvent(javax.jcr.observation.EventIterator events)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcrResourceListener
public JcrResourceListener(String workspaceName,
ResourceResolverFactory factory,
String startPath,
String mountPrefix,
org.osgi.util.tracker.ServiceTracker eventAdminTracker)
throws LoginException,
javax.jcr.RepositoryException
- Constructor.
- Parameters:
workspaceName
- The workspace name to observefactory
- The resource resolver factory.startPath
- The observation root pathmountPrefix
- The mount path in the repositoryeventAdminTracker
- The service tracker for the event admin.
- Throws:
javax.jcr.RepositoryException
LoginException
dispose
public void dispose()
- Dispose this listener.
onEvent
public void onEvent(javax.jcr.observation.EventIterator events)
- Specified by:
onEvent
in interface javax.jcr.observation.EventListener
- See Also:
EventListener.onEvent(javax.jcr.observation.EventIterator)
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.