public abstract class AbstractCopyingInstalledLocalDeployer extends AbstractInstalledLocalDeployer
deployable
directory of the
given installed container. Note that this deployer supports expanded WARs by copying the
expanded WAR to the deployable
directory. In other words it does not support
in-place expanded WARs (i.e. 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 |
deployEar(String deployableDir,
EAR ear)
Copy the EAR file to the deployable directory.
|
protected void |
deployEjb(String deployableDir,
EJB ejb)
Copy the EJB file to the deployable directory.
|
protected void |
deployExpandedWar(String deployableDir,
WAR war)
Copy the full expanded WAR directory to the deployable directory, renaming it if the user
has specified a custom context for this expanded WAR.
|
protected void |
deployWar(String deployableDir,
WAR war)
Copy the WAR file to the deployable directory, renaming it if the user has specified a
custom context for this WAR.
|
abstract String |
getDeployableDir()
Specifies the directory
Deployable s
should be copied to. |
void |
setShouldDeployExpandedWARs(boolean flag)
Decide whether expanded WARs should be deployed.
|
getType
getContainer, getFileHandler, setFileHandler
deploy, deploy, redeploy, start, stop, undeploy
public AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer container)
public void setShouldDeployExpandedWARs(boolean flag)
flag
- if true expanded WARs will be deployedpublic void deploy(Deployable deployable)
Deployable
to the running container and make it available for requests.deploy
in interface Deployer
deploy
in class AbstractDeployer
deployable
- the Deployable
to deployDeployer.deploy(Deployable)
protected boolean canBeDeployed(Deployable newDeployable)
newDeployable
- deployablepublic abstract String getDeployableDir()
Deployable
s
should be copied to.protected void deployEar(String deployableDir, EAR ear)
deployableDir
- the directory where the container is expecting deployables to be dropped
for deploymentsear
- the EAR deployableprotected void deployEjb(String deployableDir, EJB ejb)
deployableDir
- the container's deployable directoryejb
- the EJB deployableprotected void deployWar(String deployableDir, WAR war)
deployableDir
- the directory where the container is expecting deployables to be dropped
for deploymentswar
- the WAR warprotected void deployExpandedWar(String deployableDir, WAR war)
deployableDir
- the directory where the container is expecting deployables to be dropped
for deploymentswar
- the expanded WAR warCopyright © 2004-2013 Codehaus. All Rights Reserved.