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).
Handles the logic of deploying the module/app to the required destination.
The destination is specified on the constructor and can be modified by
calling setTarget().
set cancel flag, which will ensure that only if there is any current deployment is in process,
it will be completed but the deployer will not do any more deployment.