Class AbstractRoutingConnectionFactory

java.lang.Object
org.springframework.r2dbc.connection.lookup.AbstractRoutingConnectionFactory
All Implemented Interfaces:
ConnectionFactory, InitializingBean

public abstract class AbstractRoutingConnectionFactory extends Object implements ConnectionFactory, InitializingBean
Abstract ConnectionFactory implementation that routes create() calls to one of various target factories based on a lookup key. The latter is typically (but not necessarily) determined from some subscriber context.

Allows to configure a default ConnectionFactory as fallback.

Calls to getMetadata() are routed to the default ConnectionFactory if configured.

Since:
5.3
Author:
Mark Paluch, Jens Schauder
See Also: