Class GenericEventListener

  • All Implemented Interfaces:
    javax.jcr.observation.EventListener

    public class GenericEventListener
    extends Object
    implements javax.jcr.observation.EventListener
    The GenericEventListener class provides a default implementation for the EventListener interface. This receives an event and dispatches each event to a specialized method. The child class of this class can override some methods which are related to its own interests.
    • Field Detail

      • skipPaths

        protected String[] skipPaths
    • Constructor Detail

      • GenericEventListener

        public GenericEventListener()
    • Method Detail

      • getSkipPaths

        public String[] getSkipPaths()
      • setSkipPaths

        public void setSkipPaths​(String[] skipPaths)
      • isEventOnSkippedPath

        protected boolean isEventOnSkippedPath​(javax.jcr.observation.Event event)
                                        throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • eventIgnorable

        protected boolean eventIgnorable​(javax.jcr.observation.Event event)
                                  throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • onEvent

        public void onEvent​(javax.jcr.observation.EventIterator events)
        Specified by:
        onEvent in interface javax.jcr.observation.EventListener
      • onNodeAdded

        protected void onNodeAdded​(javax.jcr.observation.Event event)
      • onNodeRemoved

        protected void onNodeRemoved​(javax.jcr.observation.Event event)
      • onPropertyAdded

        protected void onPropertyAdded​(javax.jcr.observation.Event event)
      • onPropertyChanged

        protected void onPropertyChanged​(javax.jcr.observation.Event event)
      • onPropertyRemoved

        protected void onPropertyRemoved​(javax.jcr.observation.Event event)