类 FileNodeListener


public class FileNodeListener extends NodeListener
A NodeList that monitors the change of a file.
作者:
DigitalSonic
  • 构造器详细资料

    • FileNodeListener

      public FileNodeListener()
  • 方法详细资料

    • init

      public void init()
      Start a Scheduler to check the specified file.
      覆盖:
      init 在类中 NodeListener
      另请参阅:
    • refresh

      public List<NodeEvent> refresh()
      Load the properties file and diff with the stored Properties.
      指定者:
      refresh 在类中 NodeListener
      返回:
      A List of the modification
    • destroy

      public void destroy()
      Close the ScheduledExecutorService.
      指定者:
      destroy 在类中 NodeListener
    • getIntervalSeconds

      public int getIntervalSeconds()
    • setIntervalSeconds

      public void setIntervalSeconds(int intervalSeconds)
    • getFile

      public String getFile()
    • setFile

      public void setFile(String file)