Class Tomcat4xConfigurationBuilder
- java.lang.Object
-
- org.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder
-
- org.codehaus.cargo.container.tomcat.internal.AbstractTomcatConfigurationBuilder
-
- org.codehaus.cargo.container.tomcat.internal.Tomcat4xConfigurationBuilder
-
- All Implemented Interfaces:
ConfigurationBuilder
public class Tomcat4xConfigurationBuilder extends AbstractTomcatConfigurationBuilder
Constructs xml elements needed to configure a DataSource for Tomcat4x. Note that this implementation converts DataSources into Resources and then uses an appropriateConfigurationBuilder
to create the configuration.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatConfigurationBuilder
typeToFactory
-
-
Constructor Summary
Constructors Constructor Description Tomcat4xConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDataSourceFactoryClass()
String
toConfigurationEntry(Resource resource)
Detects the type of theResource
and creates an appropriate configuration.-
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatConfigurationBuilder
buildConfigurationEntryForXADataSourceConfiguredDataSource, buildEntryForDriverConfiguredDataSourceWithLocalTx, buildEntryForDriverConfiguredDataSourceWithNoTx, buildEntryForDriverConfiguredDataSourceWithXaTx, convertDataSourceToResourceAndGetXMLEntry, convertToResource, getFactoryClassFor
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder
toConfigurationEntry
-
-
-
-
Method Detail
-
toConfigurationEntry
public String toConfigurationEntry(Resource resource)
Description copied from interface:ConfigurationBuilder
Detects the type of theResource
and creates an appropriate configuration.- Parameters:
resource
- what do generate XML based upon- Returns:
- String representing the Resource element of server.xml
-
getDataSourceFactoryClass
protected String getDataSourceFactoryClass()
- Returns:
- Datasource factory class.
-
-