Class HotDeploy


  • public class HotDeploy
    extends java.lang.Object
    A hot deploy app that defines what is included for hot deploy to check for changes. The file system watcher service on the top level directory is used, then when it happens, the application files and directories are checked if it does affect a reload.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.io.File[]addDirectory​(java.io.File dir)
      Adds a new directory to check for changes.
      java.io.File[]addDirectory​(java.io.File dir, java.io.File[] files)
      Adds a new directory to check for changes.
      voidaddFile​(java.io.File file)
      Adds a new file or directory to check for changes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addFile

        public void addFile​(java.io.File file)
        Adds a new file or directory to check for changes.
        Parameters:
        file - The file or directory to keep track of.
      • addDirectory

        public java.io.File[] addDirectory​(java.io.File dir)
        Adds a new directory to check for changes.
        Parameters:
        dir - The directory to keep track of.
        Returns:
        The list of files in the directory, perhaps empty (and never null).
      • addDirectory

        public java.io.File[] addDirectory​(java.io.File dir,
                                           java.io.File[] files)
        Adds a new directory to check for changes.
        Parameters:
        dir - The directory to keep track of.
        files - The files to add.
        Returns:
        The list of files in the directory, perhaps empty (and never null).