public class WebLogic8xConfigurationBuilder extends AbstractConfigurationBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_CONFIGURATION_UNSUPPORTED
Exception message when trying to configure a Resource.
|
| Constructor and Description |
|---|
WebLogic8xConfigurationBuilder(String serverName)
Create an instance to add configuration for a particular server.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds) |
String |
buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds) |
String |
buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds) |
String |
buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds) |
protected String |
configureDataSourceWithImplementationClass(DataSource ds,
String className) |
protected String |
getServerName() |
protected void |
setServerName(String serverName) |
String |
toConfigurationEntry(Resource resource)
Detects the type of the
Resource and creates an appropriate configuration. |
toConfigurationEntrypublic static final String RESOURCE_CONFIGURATION_UNSUPPORTED
public WebLogic8xConfigurationBuilder(String serverName)
serverName - server to target resources to.protected String configureDataSourceWithImplementationClass(DataSource ds, String className)
ds - the DataSource we are configuring.className - the implementation class used for this DataSourcepublic String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithLocalTx in class AbstractConfigurationBuilderds - 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.DriverDataSource.getTransactionSupport() is
TransactionSupport.LOCAL_TRANSACTIONjavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation().public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithNoTx in class AbstractConfigurationBuilderds - 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.DriverDataSource.getTransactionSupport() is
TransactionSupport.NO_TRANSACTIONjavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation().public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
buildEntryForDriverConfiguredDataSourceWithXaTx in class AbstractConfigurationBuilderds - 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.DriverDataSource.getTransactionSupport() is
TransactionSupport.XA_TRANSACTIONjavax.sql.DataSource to the JNDI path specified at
DataSource.getJndiLocation().public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
buildConfigurationEntryForXADataSourceConfiguredDataSource in class AbstractConfigurationBuilderds - the DataSource with the following state:
DataSource.getJndiLocation() is set to a unique path for the container.DataSource.getConnectionType() is javax.sql.XADataSourceDataSource.getDriverClass() is an implementation of
javax.sql.XADataSourcejavax.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().protected void setServerName(String serverName)
serverName - the serverName to setprotected String getServerName()
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.Copyright © 2004-2013 Codehaus. All Rights Reserved.