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
-
public class WebLogic8xConfigXmlInstalledLocalDeployer extends AbstractInstalledLocalDeployer
Static deployer that manages deployment configuration by manipulating the WebLogic config.xml file.
-
-
Constructor Summary
Constructors Constructor Description WebLogic8xConfigXmlInstalledLocalDeployer(LocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddEarToDomain(EAR ear, Element domain)Insert the corresponding ear element into the domain of the WebLogic server.protected voidaddWarToDomain(WAR war, Element domain)Insert the corresponding web app element into the domain of the WebLogic server.voiddeploy(Deployable deployable)Deploy aDeployableto the running container and make it available for requests.protected StringgetDomainHome()get the DOMAIN_HOME of the server.protected StringgetServerName()return the running server's name.voidundeploy(Deployable deployable)Undeploy aDeployablefrom the running container.voidwriteConfigXml(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
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
WebLogic8xConfigXmlInstalledLocalDeployer
public WebLogic8xConfigXmlInstalledLocalDeployer(LocalContainer container)
- Parameters:
container- container to configure
-
-
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(Deployable deployable)
Deploy aDeployableto the running container and make it available for requests. deploys files by adding their configuration to the config.xml file of the WebLogic server.- Specified by:
deployin interfaceDeployer- Overrides:
deployin classAbstractDeployer- Parameters:
deployable- theDeployableto deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployablefrom the running container. The service becomes unavailable for requests. undeploys files by removing their configuration to the config.xml file of the WebLogic server.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- theDeployableto undeploy
-
addWarToDomain
protected void addWarToDomain(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(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
-
-