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

All Known Implementing Classes:
AbstractConfigurationBuilder, AbstractTomcatConfigurationBuilder, JRun4xConfigurationBuilder, OrionConfigurationBuilder, Resin2xConfigurationBuilder, Resin3xConfigurationBuilder, Tomcat4xConfigurationBuilder, Tomcat5And6xConfigurationBuilder, WebLogic8xConfigurationBuilder, WebLogic9x10xAnd103xConfigurationBuilder

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
 String toConfigurationEntry(DataSource ds)
          Detects the type of the DataSource and creates an appropriate configuration.
 String toConfigurationEntry(Resource resource)
          Detects the type of the Resource and creates an appropriate configuration.
 

Method Detail

toConfigurationEntry

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

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-2012 Codehaus. All Rights Reserved.