@Service @PerLookup public class AutoDeploymentOperation extends AutoOperation
Note - Use the newInstance static method to obtain a fully-injected operation; it is safer and more convenient than using the no-arg constructor and then invoking init yourself.
| Modifier and Type | Field and Description |
|---|---|
static Logger |
deplLogger |
| Constructor and Description |
|---|
AutoDeploymentOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMessageString(AutoDeployer.AutodeploymentStatus ds,
File file)
Returns the appropriate message string for the given operation and the outcome.
|
protected AutoDeploymentOperation |
init(boolean writeMarkOnDeployed,
File file,
boolean enabled,
String virtualServer,
boolean forceDeploy,
boolean verify,
boolean preJspCompilation,
String target,
String contextRoot)
Completes the initialization of the object.
|
protected void |
markFiles(AutoDeployer.AutodeploymentStatus ds,
File file)
Marks the files relevant to the specified file appropriately given the outcome of the command as given in the status.
|
static AutoDeploymentOperation |
newInstance(org.glassfish.hk2.api.ServiceLocator serviceLocator,
File file,
String virtualServer,
String target,
String contextRoot)
Creates a fully-injected, ready-to-use AutoDeploymentOperation object.
|
deleteAllMarks, getDeployedFile, getDeployFailedFile, getUndeployedFile, getUndeployFailedFile, runpublic static final Logger deplLogger
public static AutoDeploymentOperation newInstance(org.glassfish.hk2.api.ServiceLocator serviceLocator, File file, String virtualServer, String target, String contextRoot)
serviceLocator - file - virtualServer - target - protected AutoDeploymentOperation init(boolean writeMarkOnDeployed, File file, boolean enabled, String virtualServer, boolean forceDeploy, boolean verify, boolean preJspCompilation, String target, String contextRoot)
writeMarkOnDeployed - file - enabled - virtualServer - forceDeploy - verify - preJspCompilation - target - protected String getMessageString(AutoDeployer.AutodeploymentStatus ds, File file)
getMessageString in class AutoOperationds - AutodeploymentStatus value giving the outcome of the operationfile - file of interestprotected void markFiles(AutoDeployer.AutodeploymentStatus ds, File file)
markFiles in class AutoOperationds - AutodeploymentStatus indicating the outcome of the operationfile - file of interestCopyright © 2019. All rights reserved.