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) |
toConfigurationEntry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toConfigurationEntry
protected Map typeToFactory
public AbstractTomcatConfigurationBuilder()
typeToFactory
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithNoTx
in class AbstractConfigurationBuilder
convertDataSourceToResourceAndGetXMLEntry(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 AbstractConfigurationBuilder
public String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithLocalTx
in class AbstractConfigurationBuilder
public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithXaTx
in class AbstractConfigurationBuilder
Copyright © 2004-2013 Codehaus. All Rights Reserved.