Package org.springframework.r2dbc.connection.lookup
@NullMarked
package org.springframework.r2dbc.connection.lookup
Provides a strategy for looking up R2DBC ConnectionFactories by name.
-
ClassDescriptionAbstract
ConnectionFactory
implementation that routesAbstractRoutingConnectionFactory.create()
calls to one of various target factories based on a lookup key.ConnectionFactoryLookup
implementation based on a SpringBeanFactory
.Strategy interface for looking upConnectionFactory
by name.Exception to be thrown by aConnectionFactoryLookup
implementation, indicating that the specifiedConnectionFactory
could not be obtained.SimpleConnectionFactoryLookup
implementation that relies on a map for doing lookups.An implementation ofConnectionFactoryLookup
that simply wraps a single givenConnectionFactory
returned for any connection factory name.