|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.deployer.AbstractDeployer
org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
public abstract class AbstractCopyingInstalledLocalDeployer
Local deployer that deploys WARs, EJBs and EARs to a 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 Summary | |
---|---|
AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer container)
|
Method Summary | |
---|---|
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 |
deployExpandedRar(String deployableDir,
RAR rar)
Copy the full expanded RAR directory to the deployable directory, renaming it if the user has specified a custom context for this expanded RAR. |
protected void |
deployExpandedSar(String deployableDir,
SAR sar)
Copy the full expanded SAR directory to the deployable directory, renaming it if the user has specified a custom context for this expanded SAR. |
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 |
deployFile(String deployableDir,
File file)
Copy the file to the deployable directory. |
protected void |
deployRar(String deployableDir,
RAR rar)
Copy the RAR file to the deployable directory. |
protected void |
deploySar(String deployableDir,
SAR sar)
Copy the SAR file to the deployable directory. |
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 |
setShouldDeployExpandedRARs(boolean flag)
Decide whether expanded RARs should be deployed. |
void |
setShouldDeployExpandedSARs(boolean flag)
Decide whether expanded SARs should be deployed. |
void |
setShouldDeployExpandedWARs(boolean flag)
Decide whether expanded WARs should be deployed. |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer |
---|
getType |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer |
---|
getContainer, getFileHandler, setFileHandler |
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer |
---|
deploy, deploy, redeploy, start, stop, undeploy, undeploy |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
---|
getLogger, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
---|
getLogger, setLogger |
Constructor Detail |
---|
public AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer container)
AbstractInstalledLocalDeployer#AbstractInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer)
Method Detail |
---|
public void setShouldDeployExpandedWARs(boolean flag)
flag
- if true expanded WARs will be deployedpublic void setShouldDeployExpandedSARs(boolean flag)
flag
- if true expanded SARs will be deployedpublic void setShouldDeployExpandedRARs(boolean flag)
flag
- if true expanded RARs 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
- deployable
public 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 deploySar(String deployableDir, SAR sar)
deployableDir
- The directory to copy it toosar
- the sar to copyprotected void deployRar(String deployableDir, RAR rar)
deployableDir
- The directory to copy it toorar
- the rar to copyprotected 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 warprotected void deployExpandedSar(String deployableDir, SAR sar)
deployableDir
- the directory to deploy the expanded SARsar
- the expanded SAR sarprotected void deployExpandedRar(String deployableDir, RAR rar)
deployableDir
- the directory to deploy the expanded RARrar
- the expanded RAR rarprotected void deployFile(String deployableDir, File file)
deployableDir
- the directory to hold the filefile
- The file to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |