类 ClassPathFileSystemWatcher

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class ClassPathFileSystemWatcher
    extends Object
    implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
    Encapsulates a FileSystemWatcher to watch the local classpath folders for changes.
    从以下版本开始:
    1.3.0
    另请参阅:
    ClassPathFileChangeListener
    • 方法详细资料

      • setStopWatcherOnRestart

        public void setStopWatcherOnRestart​(boolean stopWatcherOnRestart)
        Set if the FileSystemWatcher should be stopped when a full restart occurs.
        参数:
        stopWatcherOnRestart - if the watcher should be stopped when a restart occurs
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException
      • destroy

        public void destroy()
                     throws Exception
        指定者:
        destroy 在接口中 org.springframework.beans.factory.DisposableBean
        抛出:
        Exception