Class WebLogic8xConfigXmlInstalledLocalDeployer

  • All Implemented Interfaces:
    org.codehaus.cargo.container.deployer.Deployer, org.codehaus.cargo.util.log.Loggable

    public class WebLogic8xConfigXmlInstalledLocalDeployer
    extends org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
    Static deployer that manages deployment configuration by manipulating the WebLogic config.xml file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addEarToDomain​(org.codehaus.cargo.container.deployable.EAR ear, Element domain)
      Insert the corresponding ear element into the domain of the WebLogic server.
      protected void addWarToDomain​(org.codehaus.cargo.container.deployable.WAR war, Element domain)
      Insert the corresponding web app element into the domain of the WebLogic server.
      void deploy​(org.codehaus.cargo.container.deployable.Deployable deployable)
      deploys files by adding their configuration to the config.xml file of the WebLogic server.
      protected String getDomainHome()
      get the DOMAIN_HOME of the server.
      protected String getServerName()
      return the running server's name.
      void undeploy​(org.codehaus.cargo.container.deployable.Deployable deployable)
      undeploys files by removing their configuration to the config.xml file of the WebLogic server.
      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
      • Methods inherited from interface org.codehaus.cargo.util.log.Loggable

        getLogger, setLogger
    • Constructor Detail

      • WebLogic8xConfigXmlInstalledLocalDeployer

        public WebLogic8xConfigXmlInstalledLocalDeployer​(org.codehaus.cargo.container.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​(org.codehaus.cargo.container.deployable.Deployable deployable)
        deploys files by adding their configuration to the config.xml file of the WebLogic server.
        Specified by:
        deploy in interface org.codehaus.cargo.container.deployer.Deployer
        Overrides:
        deploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
      • undeploy

        public void undeploy​(org.codehaus.cargo.container.deployable.Deployable deployable)
        undeploys files by removing their configuration to the config.xml file of the WebLogic server.
        Specified by:
        undeploy in interface org.codehaus.cargo.container.deployer.Deployer
        Overrides:
        undeploy in class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
      • addWarToDomain

        protected void addWarToDomain​(org.codehaus.cargo.container.deployable.WAR war,
                                      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​(org.codehaus.cargo.container.deployable.EAR ear,
                                      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