org.codehaus.cargo.container.configuration.builder
Interface ConfigurationBuilder

All Known Implementing Classes:
AbstractConfigurationBuilder

public interface ConfigurationBuilder

Builds String representations a Resource configuration. These may be JSON or XML or Properties that the Container will know what to do with.

Version:
$Id: $

Method Summary
 java.lang.String toConfigurationEntry(DataSource ds)
          Detects the type of the DataSource and creates an appropriate configuration.
 java.lang.String toConfigurationEntry(Resource resource)
          Detects the type of the Resource and creates an appropriate configuration.
 

Method Detail

toConfigurationEntry

java.lang.String toConfigurationEntry(Resource resource)
Detects the type of the Resource and creates an appropriate configuration.

Parameters:
resource - the Resource you wish to build a configuration entry for.
Returns:
the container-specific representation of this configuration.

toConfigurationEntry

java.lang.String toConfigurationEntry(DataSource ds)
Detects the type of the DataSource and creates an appropriate configuration.

Parameters:
ds - the DataSource you wish to build a configuration entry for.
Returns:
the container-specific representation of this configuration.


Copyright © 2004-2011 Codehaus. All Rights Reserved.