public class WebLogic9xConfigXmlInstalledLocalDeployer extends AbstractInstalledLocalDeployer
Modifier and Type | Field and Description |
---|---|
protected static String |
RESOURCE_PATH
The path under which the container resources are stored in the JAR.
|
Constructor and Description |
---|
WebLogic9xConfigXmlInstalledLocalDeployer(InstalledLocalContainer container) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDeployableToDomain(Deployable deployable,
org.dom4j.Element domain)
Create and insert an app-deployment element into the domain of the WebLogic server.
|
protected org.dom4j.Element |
createElementForDeployableInDomain(Deployable deployable,
org.dom4j.Element domain)
create the config.xml element representing the Deployable.
|
protected String |
createIdForDeployable(Deployable deployable)
Get a string name for the configuration of this deployable.
|
protected String |
createIdFromFileName(Deployable deployable)
Get a string name for the configuration of this deployable based on its filename.
|
void |
deploy(Deployable deployable)
deploys files by adding their configuration to the config.xml file of the
WebLogic server.
|
protected String |
getConfigXmlPath()
Return the absolute path of the config.xml file.
|
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.
|
protected void |
removeDeployableFromDomain(Deployable deployable,
org.dom4j.Element domain)
Remove the corresponding app-deployment element from the domain of the WebLogic server.
|
protected void |
reorderAppDeploymentsAfterConfigurationVersion(org.dom4j.Element domain)
Per current schema of the weblogic domain, app-deployment elements need to come directly
after the configuration-version element.
|
protected List |
selectAppDeployments(Deployable deployable,
org.dom4j.Element domain)
this will select the node(s) that match the below deployment.
|
void |
undeploy(Deployable deployable)
undeploys files by removing their configuration to the config.xml file of the
WebLogic server.
|
void |
writeConfigXml(org.dom4j.Document configXml)
write the domain's config.xml to disk.
|
getType
getContainer, getFileHandler, setFileHandler
deploy, deploy, redeploy, start, stop, undeploy
protected static final String RESOURCE_PATH
public WebLogic9xConfigXmlInstalledLocalDeployer(InstalledLocalContainer container)
container
- container to configurepublic org.dom4j.Document readConfigXml()
protected String getConfigXmlPath()
public void writeConfigXml(org.dom4j.Document configXml)
configXml
- document to write to diskprotected String getDomainHome()
public void deploy(Deployable deployable)
deploy
in interface Deployer
deploy
in class AbstractDeployer
AbstractDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)
public void undeploy(Deployable deployable)
undeploy
in interface Deployer
undeploy
in class AbstractDeployer
AbstractDeployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)
protected void removeDeployableFromDomain(Deployable deployable, org.dom4j.Element domain)
deployable
- - application component to removedomain
- - Domain element of the WebLogic serverprotected List selectAppDeployments(Deployable deployable, org.dom4j.Element domain)
deployable
- what to search fordomain
- root element to search inprotected void addDeployableToDomain(Deployable deployable, org.dom4j.Element domain)
deployable
- - application component to configuredomain
- - Domain element of the WebLogic serverprotected org.dom4j.Element createElementForDeployableInDomain(Deployable deployable, org.dom4j.Element domain)
deployable
- to configuredomain
- root element of the config.xml fileprotected void reorderAppDeploymentsAfterConfigurationVersion(org.dom4j.Element domain)
domain
- - domain to re-orderprotected String createIdForDeployable(Deployable deployable)
deployable
- used to construct the idprotected String createIdFromFileName(Deployable deployable)
deployable
- used to construct the idprotected String getServerName()
Copyright © 2004-2013 Codehaus. All Rights Reserved.