|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder
org.codehaus.cargo.container.orion.internal.OrionConfigurationBuilder
public class OrionConfigurationBuilder
Contains the xml elements used to build a normal or XA compliant DataSource for Orion. Note that this implementation returns multiple xml elements for DataSources which specify dataSourceclass.
Field Summary | |
---|---|
static String |
RESOURCE_CONFIGURATION_UNSUPPORTED
Exception message when trying to configure a Resource. |
Constructor Summary | |
---|---|
OrionConfigurationBuilder()
create the default instance by passing control to the superclass. |
Method Summary | |
---|---|
String |
buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
This implementation will create two elements, one for the XA DataSource, and another that proxies that. |
String |
buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
|
String |
buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
|
String |
buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
|
String |
toConfigurationEntry(Resource resource)
Detects the type of the Resource and creates an appropriate configuration. |
Methods inherited from class org.codehaus.cargo.container.spi.configuration.builder.AbstractConfigurationBuilder |
---|
toConfigurationEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RESOURCE_CONFIGURATION_UNSUPPORTED
Constructor Detail |
---|
public OrionConfigurationBuilder()
AbstractConfigurationBuilder.AbstractConfigurationBuilder()
Method Detail |
---|
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithNoTx
in class AbstractConfigurationBuilder
ds
- the DataSource
with the following state:
DataSource.getJndiLocation()
is set to a unique path for the
container.DataSource.getDriverClass()
is an implementation of
java.sql.Driver
DataSource.getTransactionSupport()
is
TransactionSupport.NO_TRANSACTION
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
.public String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithLocalTx
in class AbstractConfigurationBuilder
ds
- the DataSource
with the following state:
DataSource.getJndiLocation()
is set to a unique path for the
container.DataSource.getDriverClass()
is an implementation of
java.sql.Driver
DataSource.getTransactionSupport()
is
TransactionSupport.LOCAL_TRANSACTION
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
.public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithXaTx
in class AbstractConfigurationBuilder
ds
- the DataSource
with the following state:
DataSource.getJndiLocation()
is set to a unique path for the
container.DataSource.getDriverClass()
is an implementation of
java.sql.Driver
DataSource.getTransactionSupport()
is
TransactionSupport.XA_TRANSACTION
javax.sql.DataSource
to the JNDI path specified at
DataSource.getJndiLocation()
.public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
buildConfigurationEntryForXADataSourceConfiguredDataSource
in class AbstractConfigurationBuilder
ds
- the DataSource
with the following state:
DataSource.getJndiLocation()
is set to a unique path for the
container.DataSource.getConnectionType()
is javax.sql.XADataSource
DataSource.getDriverClass()
is an implementation of
javax.sql.XADataSource
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()
.public String toConfigurationEntry(Resource resource)
Resource
and creates an appropriate configuration. This implementation throws an UnsupportedOperationException as Resource
configuration is not supported in Orion.
resource
- the Resource you wish to build a configuration entry for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |