|
||||||||||
| 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.weblogic.internal.WebLogic8xConfigurationBuilder
public class WebLogic8xConfigurationBuilder
Contains the xml elements used to build a normal or XA compliant DataSource for WebLogic.
| Field Summary | |
|---|---|
static String |
RESOURCE_CONFIGURATION_UNSUPPORTED
Exception message when trying to configure a Resource. |
| Constructor Summary | |
|---|---|
WebLogic8xConfigurationBuilder(String serverName)
Create an instance to add configuration for a particular server. |
|
| Method Summary | |
|---|---|
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. |
| 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 WebLogic8xConfigurationBuilder(String serverName)
serverName - server to target resources to.| Method Detail |
|---|
protected String configureDataSourceWithImplementationClass(DataSource ds,
String className)
ds - the DataSource we are configuring.className - the implementation class used for this DataSource
public 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.XADataSource
DataSource.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||