Class SingleConnectionFactoryLookup
java.lang.Object
org.springframework.r2dbc.connection.lookup.SingleConnectionFactoryLookup
- All Implemented Interfaces:
- ConnectionFactoryLookup
An implementation of 
ConnectionFactoryLookup that
 simply wraps a single given ConnectionFactory
 returned for any connection factory name.- Since:
- 5.3
- Author:
- Mark Paluch
- 
Constructor SummaryConstructorsConstructorDescriptionSingleConnectionFactoryLookup(ConnectionFactory connectionFactory) Create a new instance of theSingleConnectionFactoryLookupclass.
- 
Method SummaryModifier and TypeMethodDescriptiongetConnectionFactory(String connectionFactoryName) Retrieve theConnectionFactoryidentified by the given name.
- 
Constructor Details- 
SingleConnectionFactoryLookupCreate a new instance of theSingleConnectionFactoryLookupclass.- Parameters:
- connectionFactory- the single- ConnectionFactoryto wrap
 
 
- 
- 
Method Details- 
getConnectionFactorypublic ConnectionFactory getConnectionFactory(String connectionFactoryName) throws ConnectionFactoryLookupFailureException Description copied from interface:ConnectionFactoryLookupRetrieve theConnectionFactoryidentified by the given name.- Specified by:
- getConnectionFactoryin interface- ConnectionFactoryLookup
- Parameters:
- connectionFactoryName- the name of the- ConnectionFactory
- Returns:
- the ConnectionFactory(nevernull)
- Throws:
- ConnectionFactoryLookupFailureException- if the lookup failed
 
 
-