ConnectionFactoryLookup implementation that relies
on a map for doing lookups.
Useful for testing environments or applications that need to match
arbitrary String names to target ConnectionFactory objects.
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MapConnectionFactoryLookup(Map<String, ConnectionFactory>
the connectionFactories)Map of ConnectionFactory.
The keys are Strings, the values are actual ConnectionFactory instances.Create a new instance of the |
| public | MapConnectionFactoryLookup(String
the name under which the supplied connectionFactoryName, ConnectionFactory ConnectionFactory is to be addedthe connectionFactory)ConnectionFactory to be addedCreate a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConnectionFactory(String
the name under which the supplied connectionFactoryName, ConnectionFactory ConnectionFactory is to be addedthe connectionFactory)ConnectionFactory to be so addedAdd the supplied |
| public Map | |
| public ConnectionFactory | getConnectionFactory(String
the name of the connectionFactoryName)ConnectionFactoryImplements org. Retrieve the |
| public void | setConnectionFactories(Map<String, ConnectionFactory>
said connectionFactories)Map of connectionFactoriesSet the |
| connectionFactories | back to summary |
|---|---|
| private final Map<String, ConnectionFactory> connectionFactories | |
| MapConnectionFactoryLookup | back to summary |
|---|---|
| public MapConnectionFactoryLookup() Create a new instance of the | |
| MapConnectionFactoryLookup | back to summary |
|---|---|
| public MapConnectionFactoryLookup(Map<String, ConnectionFactory> connectionFactories) Create a new instance of the
| |
| MapConnectionFactoryLookup | back to summary |
|---|---|
| public MapConnectionFactoryLookup(String connectionFactoryName, ConnectionFactory connectionFactory) Create a new instance of the
| |
| addConnectionFactory | back to summary |
|---|---|
| public void addConnectionFactory(String connectionFactoryName, ConnectionFactory connectionFactory) Add the supplied
| |
| getConnectionFactories | back to summary |
|---|---|
| public Map Get the The returned
| |
| getConnectionFactory | back to summary |
|---|---|
| public ConnectionFactory getConnectionFactory(String connectionFactoryName) throws ConnectionFactoryLookupFailureException Implements org. Doc from org. Retrieve the
| |
| setConnectionFactories | back to summary |
|---|---|
| public void setConnectionFactories(Map<String, ConnectionFactory> connectionFactories) Set the If the supplied
| |