Class WebLogic8xConfigXmlInstalledLocalDeployer

  • All Implemented Interfaces:
    Deployer, Loggable

    public class WebLogic8xConfigXmlInstalledLocalDeployer
    extends AbstractInstalledLocalDeployer
    Static deployer that manages deployment configuration by manipulating the WebLogic config.xml file.
    • 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 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
      • 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
      • 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 configure
        domain - - 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 configure
        domain - - Domain element of the WebLogic server
      • getServerName

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