org.codehaus.cargo.container.weblogic
Class WebLogicExistingLocalConfiguration

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
          extended by org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
              extended by org.codehaus.cargo.container.spi.configuration.AbstractExistingLocalConfiguration
                  extended by org.codehaus.cargo.container.weblogic.WebLogicExistingLocalConfiguration
All Implemented Interfaces:
Configuration, ExistingLocalConfiguration, LocalConfiguration, ContainerConfiguration, WebLogicConfiguration, Loggable
Direct Known Subclasses:
WebLogic9xExistingLocalConfiguration

public class WebLogicExistingLocalConfiguration
extends AbstractExistingLocalConfiguration
implements WebLogicConfiguration

WebLogic existing configuration implementation. The configuration home must point to a valid WebLogic domain directory.

Version:
$Id: WebLogicExistingLocalConfiguration.java 1848 2008-12-11 14:52:22Z adriancole $

Field Summary
 
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
 
Constructor Summary
WebLogicExistingLocalConfiguration(String dir)
          
 
Method Summary
protected  void doConfigure(LocalContainer container)
          Implementation of LocalConfiguration.configure(LocalContainer) that all local configuration using this class must implement.
 ConfigurationCapability getCapability()
          
 String getDomainHome()
          The DOMAIN_HOME holds the configuration and runtime files of a WebLogic domain.
protected  void setupDeployables(WebLogicLocalContainer container)
          Deploy the Deployables to the weblogic configuration.
 String toString()
          
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractExistingLocalConfiguration
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, configure, getAntUtils, getDataSources, getDeployables, getFileHandler, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, setFileHandler, verify
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
getProperties, getPropertyValue, setProperty
 
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, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDeployable, addResource, configure, getDeployables, getFileHandler, getHome, getResources, setFileHandler
 
Methods inherited from interface org.codehaus.cargo.container.configuration.Configuration
getProperties, getPropertyValue, setProperty
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

WebLogicExistingLocalConfiguration

public WebLogicExistingLocalConfiguration(String dir)

See Also:
AbstractExistingLocalConfiguration.AbstractExistingLocalConfiguration(String)
Method Detail

doConfigure

protected void doConfigure(LocalContainer container)
                    throws Exception
Implementation of LocalConfiguration.configure(LocalContainer) that all local configuration using this class must implement. This provides the ability to perform generic actions before and after the container-specific implementation. Another way would be to use AOP...

Specified by:
doConfigure in class AbstractLocalConfiguration
Parameters:
container - the container to configure
Throws:
Exception - if any error is raised during the configuration
See Also:
AbstractLocalConfiguration.configure(LocalContainer)

getCapability

public ConfigurationCapability getCapability()

Specified by:
getCapability in interface Configuration
Returns:
the ConfigurationCapability of the configuration in term of properties it supports, etc
See Also:
Configuration.getCapability()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

setupDeployables

protected void setupDeployables(WebLogicLocalContainer container)
                         throws IOException
Deploy the Deployables to the weblogic configuration.

Parameters:
container - the container to configure
Throws:
IOException - if the cargo ping deployment fails

getDomainHome

public String getDomainHome()
The DOMAIN_HOME holds the configuration and runtime files of a WebLogic domain. One or more server processes execute from this directory and must have permissions to write to it.

Specified by:
getDomainHome in interface WebLogicConfiguration
Returns:
The DOMAIN_HOME, or instance-specific installation of WebLogic


Copyright © 2004-2012 Codehaus. All Rights Reserved.