Class AutoDeployDirectoryScanner

  • All Implemented Interfaces:
    DirectoryScanner

    public class AutoDeployDirectoryScanner
    extends Object
    implements DirectoryScanner
    Implementation of Directory scanner for autodeployment

    Providing functionality for scanning the input source directory and return the list of deployable components for autodeployment. Provide the list of deployable modules/application, depending upon the "type" entry passed to getAllDeployableEntity(File autodeployDir, String type).

    Author:
    vikas
    • Field Detail

      • deplLogger

        public static final Logger deplLogger
    • Constructor Detail

      • AutoDeployDirectoryScanner

        public AutoDeployDirectoryScanner()
    • Method Detail

      • hasNewDeployableEntity

        public boolean hasNewDeployableEntity​(File autodeployDir)
        return true if any new deployable entity is present in autodeployDir
        Specified by:
        hasNewDeployableEntity in interface DirectoryScanner
        Parameters:
        autodeployDir -
        Returns:
      • getAllDeployableModules

        public File[] getAllDeployableModules​(File autodeployDir,
                                              boolean includeSubDir)
        Get the list of all deployable files
        Specified by:
        getAllDeployableModules in interface DirectoryScanner
        Parameters:
        autodeployDir -
        includeSubDir -
        Returns:
      • printException

        protected void printException​(Exception e)
      • getListOfFiles

        protected File[] getListOfFiles​(File dir)
      • getListOfFiles

        protected File[] getListOfFiles​(File dir,
                                        boolean includeSubDir)