public abstract class AbstractTomcatConfigurationBuilder extends AbstractConfigurationBuilder
ConfigurationBuilder to create the configuration.| Modifier and Type | Field and Description |
|---|---|
protected Map |
typeToFactory
contains a mapping of resource types to the factory they use.
|
| Constructor and Description |
|---|
AbstractTomcatConfigurationBuilder()
generates
typeToFactory |
| Modifier and Type | Method and Description |
|---|---|
String |
buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
This throws an UnsupportedOperationException as Tomcat is not transactional.
|
String |
buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
This throws an UnsupportedOperationException as Tomcat is not transactional.
|
String |
buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
this implementation first converts the DataSource to a Resource before
returning XML.
|
String |
buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
This throws an UnsupportedOperationException as Tomcat is not transactional.
|
protected String |
convertDataSourceToResourceAndGetXMLEntry(DataSource ds)
This method converts the DataSource to a Resource and then builds the xml entry based on
that.
|
protected Resource |
convertToResource(DataSource ds)
This method converts the DataSource to a Resource used in Tomcat.
|
protected String |
getFactoryClassFor(String type) |
toConfigurationEntryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoConfigurationEntryprotected Map typeToFactory
public AbstractTomcatConfigurationBuilder()
typeToFactorypublic String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithNoTx in class AbstractConfigurationBuilderconvertDataSourceToResourceAndGetXMLEntry(DataSource)protected String convertDataSourceToResourceAndGetXMLEntry(DataSource ds)
ds - the DataSource we are configuring.protected Resource convertToResource(DataSource ds)
ds - the DataSource we are configuring.protected String getFactoryClassFor(String type)
type - the type of object we are creatingfactory responsible for creating the objects.public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
buildConfigurationEntryForXADataSourceConfiguredDataSource in class AbstractConfigurationBuilderpublic String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithLocalTx in class AbstractConfigurationBuilderpublic String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithXaTx in class AbstractConfigurationBuilderCopyright © 2004-2013 Codehaus. All Rights Reserved.