Class WebLogic8xConfigXmlInstalledLocalDeployer
- java.lang.Object
-
- org.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.weblogic.WebLogic8xConfigXmlInstalledLocalDeployer
-
- All Implemented Interfaces:
org.codehaus.cargo.container.deployer.Deployer
,org.codehaus.cargo.util.log.Loggable
public class WebLogic8xConfigXmlInstalledLocalDeployer extends org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
Static deployer that manages deployment configuration by manipulating the WebLogic config.xml file.
-
-
Constructor Summary
Constructors Constructor Description WebLogic8xConfigXmlInstalledLocalDeployer(org.codehaus.cargo.container.LocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEarToDomain(org.codehaus.cargo.container.deployable.EAR ear, Element domain)
Insert the corresponding ear element into the domain of the WebLogic server.protected void
addWarToDomain(org.codehaus.cargo.container.deployable.WAR war, Element domain)
Insert the corresponding web app element into the domain of the WebLogic server.void
deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
deploys files by adding their configuration to the config.xml file of the WebLogic server.protected String
getDomainHome()
get the DOMAIN_HOME of the server.protected String
getServerName()
return the running server's name.void
undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
undeploys files by removing their configuration to the config.xml file of the WebLogic server.void
writeConfigXml(Document configXml)
write the domain's config.xml to disk.-
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
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, redeploy, start, start, stop, stop, undeploy
-
-
-
-
Method Detail
-
writeConfigXml
public void writeConfigXml(Document configXml)
write the domain's config.xml to disk.- Parameters:
configXml
- document to write to disk
-
getDomainHome
protected String getDomainHome()
get the DOMAIN_HOME of the server.- Returns:
- location to find files like config.xml
-
deploy
public void deploy(org.codehaus.cargo.container.deployable.Deployable deployable)
deploys files by adding their configuration to the config.xml file of the WebLogic server.- Specified by:
deploy
in interfaceorg.codehaus.cargo.container.deployer.Deployer
- Overrides:
deploy
in classorg.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
undeploy
public void undeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
undeploys files by removing their configuration to the config.xml file of the WebLogic server.- Specified by:
undeploy
in interfaceorg.codehaus.cargo.container.deployer.Deployer
- Overrides:
undeploy
in classorg.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
addWarToDomain
protected void addWarToDomain(org.codehaus.cargo.container.deployable.WAR war, Element domain)
Insert the corresponding web app element into the domain of the WebLogic server.- Parameters:
war
- - web application component to configuredomain
- - Domain element of the WebLogic server
-
addEarToDomain
protected void addEarToDomain(org.codehaus.cargo.container.deployable.EAR ear, Element domain)
Insert the corresponding ear element into the domain of the WebLogic server.- Parameters:
ear
- - ear to configuredomain
- - Domain element of the WebLogic server
-
getServerName
protected String getServerName()
return the running server's name.- Returns:
- the WebLogic server's name
-
-