public class WSProxyDSJNDINameAccessor
extends java.lang.Object
This class provides the access to the mapping from the Proxy DataSource JNDI name to the Delegate DataSource JNDI name. This class contains a Map which is keyed on the Proxy DataSource JNDI name. The values of this map contain the JNDI names of the Delegate DataSources.
There are two helper methods in this interface.
Constructor and Description |
---|
WSProxyDSJNDINameAccessor() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCurrentDataSourceJndiName(java.lang.String proxyJndiName)
Get the current Delegate DataSource JNDI name for a particular Proxy Datasource
from the map.
|
static void |
setCurrentDataSourceJndiName(java.lang.String proxyJndiName,
java.lang.String dsJndiName)
Set the current Delegate DataSource JNDI name for a particular Proxy Datasource
to the map.
|
public static void setCurrentDataSourceJndiName(java.lang.String proxyJndiName, java.lang.String dsJndiName)
proxyJndiName
- the JNDI name of the proxy datasourcedsJndiName
- the JNDI name of the delegate datasourcepublic static java.lang.String getCurrentDataSourceJndiName(java.lang.String proxyJndiName) throws NoDataSourceJNDINameException
proxyJndiName
- the JNDI name of the Proxy DataSourceNoDataSourceJNDINameException
- if no Delegate Datasource
JNDI name is set for this Proxy DataSource.