Interface Watcher

    • Method Detail

      • addEventListener

        void addEventListener​(ClassLoader classLoader,
                              URI pathPrefix,
                              WatchEventListener listener)
        Register listeners on an event.
        Parameters:
        classLoader - the classloader to which this path is associated. May be null, but then this listener will never be disassociated (even if application is undeployed)
        pathPrefix - where to listen
        listener - the listener
      • addEventListener

        void addEventListener​(ClassLoader classLoader,
                              URL pathPrefix,
                              WatchEventListener listener)
        Register listeners on an event.
        Parameters:
        classLoader - the classloader to which this path is associated. May be null, but then this listener will never be disassociated (even if application is undeployed)
        pathPrefix - where to listen
        listener - the listener
      • closeClassLoader

        void closeClassLoader​(ClassLoader classLoader)
        Remove all listeners registered with a classloader
        Parameters:
        classLoader - classloadr to close
      • run

        void run()
        Run the watcher agent thread.
      • stop

        void stop()
        Stop the watcher agent thread.