Package org.springframework.r2dbc.connection.lookup
@NonNullApi
@NonNullFields
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 targetfactories
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.