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 void
addEarToDomain(EAR ear, Element domain)
Insert the corresponding ear element into the domain of the WebLogic server.protected void
addWarToDomain(WAR war, Element domain)
Insert the corresponding web app element into the domain of the WebLogic server.void
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.protected String
getDomainHome()
get the DOMAIN_HOME of the server.protected String
getServerName()
return the running server's name.void
undeploy(Deployable deployable)
Undeploy aDeployable
from the running container.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
-
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 aDeployable
to 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:
deploy
in interfaceDeployer
- Overrides:
deploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployable
from 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:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to 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
-
-