org.apache.sling.jcr.resource.internal
Class JcrResourceListener

java.lang.Object
  extended by 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.


Constructor Summary
JcrResourceListener(String workspaceName, ResourceResolverFactory factory, String startPath, String mountPrefix, org.osgi.util.tracker.ServiceTracker eventAdminTracker)
          Constructor.
 
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
 

Constructor Detail

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 observe
factory - The resource resolver factory.
startPath - The observation root path
mountPrefix - The mount path in the repository
eventAdminTracker - The service tracker for the event admin.
Throws:
javax.jcr.RepositoryException
LoginException
Method Detail

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.