org.codehaus.cargo.container.geronimo
Class Geronimo1xStandaloneLocalConfiguration

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.AbstractStandaloneLocalConfiguration
                  extended by org.codehaus.cargo.container.geronimo.Geronimo1xStandaloneLocalConfiguration
All Implemented Interfaces:
Configuration, LocalConfiguration, StandaloneLocalConfiguration, ContainerConfiguration, Loggable

public class Geronimo1xStandaloneLocalConfiguration
extends AbstractStandaloneLocalConfiguration

Geronimo 1.x series standalone Configuration implementation.

Version:
$Id: Geronimo1xStandaloneLocalConfiguration.java 1572 2008-05-01 20:41:43Z mwringe $

Field Summary
 
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
 
Constructor Summary
Geronimo1xStandaloneLocalConfiguration(String dir)
          
 
Method Summary
 void addDeployable(Deployable newDeployable)
          Geronimo does not support static deployments, warn the user.
protected  org.apache.tools.ant.types.FilterChain createGeronimoFilterChain(LocalContainer container)
          Create filter to replace tokens in configuration file with user defined values.
protected  void doConfigure(LocalContainer container)
          Implementation of LocalConfiguration.configure(LocalContainer) that all local configuration using this class must implement.
 ConfigurationCapability getCapability()
          
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
configure, configureFiles, createFilterChain, getDestDirectoryLocation, getDestFileLocation, getFileProperties, getFilterChain, getType, setConfigFileProperty, setFileProperty, setupConfigurationDir, verify
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDataSource, addDataSourcesFromProperties, addResource, addResourcesFromProperties, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, 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, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addResource, 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

Geronimo1xStandaloneLocalConfiguration

public Geronimo1xStandaloneLocalConfiguration(String dir)

See Also:
AbstractStandaloneLocalConfiguration.AbstractStandaloneLocalConfiguration(String)
Method Detail

getCapability

public ConfigurationCapability getCapability()

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

addDeployable

public void addDeployable(Deployable newDeployable)
Geronimo does not support static deployments, warn the user. Deploy a Deployable in the container. It installs the Deployable in the container's configuration directory.

Specified by:
addDeployable in interface LocalConfiguration
Overrides:
addDeployable in class AbstractLocalConfiguration
Parameters:
newDeployable - the Deployable to deploy
See Also:
LocalConfiguration.addDeployable(org.codehaus.cargo.container.deployable.Deployable)

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)

createGeronimoFilterChain

protected org.apache.tools.ant.types.FilterChain createGeronimoFilterChain(LocalContainer container)
                                                                    throws MalformedURLException
Create filter to replace tokens in configuration file with user defined values.

Parameters:
container - the instance representing the Geronimo container
Returns:
token with all the user-defined token value
Throws:
MalformedURLException - If an URL is malformed.


Copyright © 2004-2012 Codehaus. All Rights Reserved.