|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.WebLogic9xConfigXmlInstalledLocalDeployer
public class WebLogic9xConfigXmlInstalledLocalDeployer
Static deployer that manages deployment configuration by manipulating the WebLogic config.xml file.
| Field Summary | |
|---|---|
protected static java.lang.String |
RESOURCE_PATH
The path under which the container resources are stored in the JAR. |
| Constructor Summary | |
|---|---|
WebLogic9xConfigXmlInstalledLocalDeployer(InstalledLocalContainer container)
|
|
| Method Summary | |
|---|---|
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 java.lang.String |
createIdForDeployable(Deployable deployable)
Get a string name for the configuration of this deployable. |
protected java.lang.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 java.lang.String |
getConfigXmlPath()
Return the absolute path of the config.xml file. |
protected java.lang.String |
getDomainHome()
get the DOMAIN_HOME of the server. |
protected java.lang.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 java.util.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. |
| 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 |
| Field Detail |
|---|
protected static final java.lang.String RESOURCE_PATH
| Constructor Detail |
|---|
public WebLogic9xConfigXmlInstalledLocalDeployer(InstalledLocalContainer container)
container - container to configure| Method Detail |
|---|
public org.dom4j.Document readConfigXml()
protected java.lang.String getConfigXmlPath()
public void writeConfigXml(org.dom4j.Document configXml)
configXml - document to write to diskprotected java.lang.String getDomainHome()
public void deploy(Deployable deployable)
deploy in interface Deployerdeploy in class AbstractDeployerAbstractDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)public void undeploy(Deployable deployable)
undeploy in interface Deployerundeploy in class AbstractDeployerAbstractDeployer.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 server
protected java.util.List selectAppDeployments(Deployable deployable,
org.dom4j.Element domain)
deployable - what to search fordomain - root element to search in
protected void addDeployableToDomain(Deployable deployable,
org.dom4j.Element domain)
deployable - - application component to configuredomain - - Domain element of the WebLogic server
protected org.dom4j.Element createElementForDeployableInDomain(Deployable deployable,
org.dom4j.Element domain)
deployable - to configuredomain - root element of the config.xml file
protected void reorderAppDeploymentsAfterConfigurationVersion(org.dom4j.Element domain)
domain - - domain to re-orderprotected java.lang.String createIdForDeployable(Deployable deployable)
deployable - used to construct the id
protected java.lang.String createIdFromFileName(Deployable deployable)
deployable - used to construct the id
protected java.lang.String getServerName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||