public class SingleConnectionFactoryLookup extends Object implements ConnectionFactoryLookup
ConnectionFactoryLookup that
simply wraps a single given ConnectionFactory
returned for any connection factory name.| Constructor and Description |
|---|
SingleConnectionFactoryLookup(ConnectionFactory connectionFactory)
Create a new instance of the
SingleConnectionFactoryLookup class. |
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory |
getConnectionFactory(String connectionFactoryName)
Retrieve the
ConnectionFactory identified by the given name. |
public SingleConnectionFactoryLookup(ConnectionFactory connectionFactory)
SingleConnectionFactoryLookup class.connectionFactory - the single ConnectionFactory to wrappublic ConnectionFactory getConnectionFactory(String connectionFactoryName) throws ConnectionFactoryLookupFailureException
ConnectionFactoryLookupConnectionFactory identified by the given name.getConnectionFactory in interface ConnectionFactoryLookupconnectionFactoryName - the name of the ConnectionFactoryConnectionFactory (never null)ConnectionFactoryLookupFailureException - if the lookup failed