org.codehaus.cargo.container.tomcat
Class TomcatExistingLocalConfiguration

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.tomcat.TomcatExistingLocalConfiguration
All Implemented Interfaces:
Configuration, ExistingLocalConfiguration, LocalConfiguration, ContainerConfiguration, Loggable

public class TomcatExistingLocalConfiguration
extends AbstractExistingLocalConfiguration

Tomcat existing Configuration implementation.

Version:
$Id: TomcatExistingLocalConfiguration.java 1158 2006-07-29 10:55:48Z vmassol $

Field Summary
 
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
 
Constructor Summary
TomcatExistingLocalConfiguration(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 toString()
          
 void verify()
          Verify that the configuration is valid.
 
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
 
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

TomcatExistingLocalConfiguration

public TomcatExistingLocalConfiguration(String dir)

See Also:
AbstractExistingLocalConfiguration.AbstractExistingLocalConfiguration(String)
Method Detail

getCapability

public ConfigurationCapability getCapability()

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

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)

verify

public void verify()
Verify that the configuration is valid. The checks to be performed may vay whether this is standalone or existing configuration. This method should also be used to verify that the configuration properties specified by the user are valid and that the required ones are set.

Specified by:
verify in interface ContainerConfiguration
Overrides:
verify in class AbstractLocalConfiguration
See Also:
ContainerConfiguration.verify()

toString

public String toString()

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


Copyright © 2004-2012 Codehaus. All Rights Reserved.