Top Description Methods
org.springframework.r2dbc.connection.lookup

public Interface ConnectionFactoryLookup

Known Direct Implementers
org.springframework.r2dbc.connection.lookup.MapConnectionFactoryLookup, org.springframework.r2dbc.connection.lookup.SingleConnectionFactoryLookup, org.springframework.r2dbc.connection.lookup.BeanFactoryConnectionFactoryLookup
Annotations
@FunctionalInterface
Imports
io.r2dbc.spi.ConnectionFactory

Strategy interface for looking up ConnectionFactory by name.
Author
Mark Paluch
Since
5.3

Method Summary

Modifier and TypeMethod and Description
public ConnectionFactory

Returns:

the ConnectionFactory (never null)
getConnectionFactory
(String
the name of the ConnectionFactory
connectionFactoryName
)

Retrieve the ConnectionFactory identified by the given name.

Method Detail

getConnectionFactoryback to summary
public ConnectionFactory getConnectionFactory(String connectionFactoryName) throws ConnectionFactoryLookupFailureException

Retrieve the ConnectionFactory identified by the given name.

Parameters
connectionFactoryName:String

the name of the ConnectionFactory

Returns:ConnectionFactory

the ConnectionFactory (never null)

Exceptions
ConnectionFactoryLookupFailureException:
if the lookup failed