org.glassfish.deployment.autodeploy
Class AutoDeployDirectoryScanner

java.lang.Object
  extended by org.glassfish.deployment.autodeploy.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

Constructor Summary
AutoDeployDirectoryScanner()
           
 
Method Summary
 void deployedEntity(File autodeployDir, File deployedEntity)
           
 File[] getAllDeployableModules(File autodeployDir, boolean includeSubDir)
          Get the list of all deployable files
 File[] getAllFilesForUndeployment(File autodeployDir, boolean includeSubdir)
           
protected  File[] getListOfFiles(File dir)
           
protected  File[] getListOfFiles(File dir, boolean includeSubDir)
           
 boolean hasNewDeployableEntity(File autodeployDir)
          return true if any new deployable entity is present in autodeployDir
protected  void printException(Exception e)
           
 void undeployedEntity(File autodeployDir, File undeployedEntity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoDeployDirectoryScanner

public AutoDeployDirectoryScanner()
Method Detail

deployedEntity

public void deployedEntity(File autodeployDir,
                           File deployedEntity)
Specified by:
deployedEntity in interface DirectoryScanner

undeployedEntity

public void undeployedEntity(File autodeployDir,
                             File undeployedEntity)
Specified by:
undeployedEntity in interface DirectoryScanner

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:

getAllFilesForUndeployment

public File[] getAllFilesForUndeployment(File autodeployDir,
                                         boolean includeSubdir)
Specified by:
getAllFilesForUndeployment in interface DirectoryScanner

getAllDeployableModules

public File[] getAllDeployableModules(File autodeployDir,
                                      boolean includeSubDir)
Get the list of all deployable files

Specified by:
getAllDeployableModules in interface DirectoryScanner
Parameters:
autodeployDir -
Returns:

printException

protected void printException(Exception e)

getListOfFiles

protected File[] getListOfFiles(File dir)

getListOfFiles

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


Copyright © 2012. All Rights Reserved.