org.codehaus.cargo.container.spi.configuration.builder
Class AbstractConfigurationBuilder
java.lang.Object
org.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder
- All Implemented Interfaces:
- ConfigurationBuilder
public abstract class AbstractConfigurationBuilder
- extends java.lang.Object
- implements ConfigurationBuilder
- Version:
- $Id: $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConfigurationBuilder
public AbstractConfigurationBuilder()
toConfigurationEntry
public final java.lang.String toConfigurationEntry(DataSource ds)
- Detects the type of the
DataSource
and creates an appropriate configuration. Detects the type of DataSource
to configure based on transactional
properties and implementation class.
- Specified by:
toConfigurationEntry
in interface ConfigurationBuilder
- Parameters:
ds
- the DataSource you wish to build a configuration entry for.
- Returns:
- the container-specific representation of this configuration.
buildEntryForDriverConfiguredDataSourceWithXaTx
public abstract java.lang.String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
- Parameters:
ds
- the DataSource
with the following state:
- Returns:
- configuration binding a container provided implementation of type
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
.
buildEntryForDriverConfiguredDataSourceWithLocalTx
public abstract java.lang.String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
- Parameters:
ds
- the DataSource
with the following state:
- Returns:
- configuration binding a container provided implementation of type
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
.
buildEntryForDriverConfiguredDataSourceWithNoTx
public abstract java.lang.String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
- Parameters:
ds
- the DataSource
with the following state:
- Returns:
- configuration binding a container provided implementation of type
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
.
buildConfigurationEntryForXADataSourceConfiguredDataSource
public abstract java.lang.String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
- Parameters:
ds
- the DataSource
with the following state:
- Returns:
- configuration binding a container provided implementation of type
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
. This container will provide XA support through
the third party implementation specified at DataSource.getDriverClass()
.
Copyright © 2004-2011 Codehaus. All Rights Reserved.