public abstract class AbstractCopyingInstalledLocalDeployer extends AbstractInstalledLocalDeployer
deployable directory of the given
installed container. Note that this deployer supports some expanded deployables by copying the
expanded deployable to the deployable directory. In other words it does not
support in-place expanded deployables (e.g. expanded WARs located in a different directory).| Constructor and Description |
|---|
AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer container) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeDeployed(Deployable newDeployable)
Checks whether the given Deployable can actually be deployed and whether a deployable has a
web context path that already exist in another previously deployed Deployable.
|
void |
deploy(Deployable deployable)
Deploy a
Deployable to the running container and make it available for requests. |
protected void |
doDeploy(String deployableDir,
Deployable deployable)
Do the actual deployment.
|
abstract String |
getDeployableDir()
Specifies the directory
Deployables should be
copied to. |
protected String |
getDeployableName(Deployable deployable)
Gets the deployable name for the given
deployable. |
void |
setShouldDeployExpanded(DeployableType type,
boolean flag)
Decide whether some expanded deployables of the specified type should be deployed or not.
|
protected boolean |
shouldDeployExpanded(DeployableType type) |
getTypegetContainer, getFileHandlerdeploy, deploy, redeploy, redeploy, start, start, stop, stop, undeploy, undeploygetLogger, setLoggerpublic AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer container)
AbstractInstalledLocalDeployer#AbstractInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer)public void setShouldDeployExpanded(DeployableType type, boolean flag)
type - the deployable typeflag - whether expanded deployment of the specified deployment type should be allowed
or notprotected boolean shouldDeployExpanded(DeployableType type)
type - the deployable typepublic void deploy(Deployable deployable)
Deployable to the running container and make it available for requests.deploy in interface Deployerdeploy in class AbstractDeployerdeployable - the Deployable to deployDeployer.deploy(Deployable)protected boolean canBeDeployed(Deployable newDeployable)
newDeployable - deployablepublic abstract String getDeployableDir()
Deployables should be
copied to.protected void doDeploy(String deployableDir, Deployable deployable)
deployableDir - Directory in which to deploy.deployable - Deployable to deploy.protected String getDeployableName(Deployable deployable)
deployable.deployable - Deployable to get the name for.Copyright © 2004-2013 Codehaus. All Rights Reserved.