org.codehaus.cargo.container.weblogic
Class WebLogic8xConfigXmlInstalledLocalDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
              extended by org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
                  extended by org.codehaus.cargo.container.weblogic.WebLogic8xConfigXmlInstalledLocalDeployer
All Implemented Interfaces:
Deployer, Loggable

public class WebLogic8xConfigXmlInstalledLocalDeployer
extends AbstractInstalledLocalDeployer

Static deployer that manages deployment configuration by manipulating the WebLogic config.xml file.

Version:
$Id: $

Constructor Summary
WebLogic8xConfigXmlInstalledLocalDeployer(LocalContainer container)
          
 
Method Summary
protected  void addEarToDomain(EAR ear, org.dom4j.Element domain)
          Insert the corresponding ear element into the domain of the WebLogic server.
protected  void addWarToDomain(WAR war, org.dom4j.Element domain)
          Insert the corresponding web app element into the domain of the WebLogic server.
 void deploy(Deployable deployable)
          Deploy a Deployable 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.
 org.dom4j.Document readConfigXml()
          read the domain's config.xml file into a Document.
 void undeploy(Deployable deployable)
          Undeploy a Deployable from the running container.
 void writeConfigXml(org.dom4j.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, setFileHandler
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, start, stop, 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

WebLogic8xConfigXmlInstalledLocalDeployer

public WebLogic8xConfigXmlInstalledLocalDeployer(LocalContainer container)

Parameters:
container - container to configure
Method Detail

readConfigXml

public org.dom4j.Document readConfigXml()
read the domain's config.xml file into a Document.

Returns:
Document corresponding with config.xml

writeConfigXml

public void writeConfigXml(org.dom4j.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 a Deployable 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 interface Deployer
Overrides:
deploy in class AbstractDeployer
Parameters:
deployable - the Deployable to deploy
See Also:
AbstractDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)

undeploy

public void undeploy(Deployable deployable)
Undeploy a Deployable 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 interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
deployable - the Deployable to undeploy
See Also:
AbstractDeployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)

addWarToDomain

protected void addWarToDomain(WAR war,
                              org.dom4j.Element domain)
Insert the corresponding web app element into the domain of the WebLogic server.

Parameters:
war - - web application component to configure
domain - - Domain element of the WebLogic server

addEarToDomain

protected void addEarToDomain(EAR ear,
                              org.dom4j.Element domain)
Insert the corresponding ear element into the domain of the WebLogic server.

Parameters:
ear - - ear to configure
domain - - Domain element of the WebLogic server

getServerName

protected String getServerName()
return the running server's name.

Returns:
the WebLogic server's name


Copyright © 2004-2012 Codehaus. All Rights Reserved.