Polish contribution
See gh-31248
This commit is contained in:
@@ -31,14 +31,14 @@ import org.springframework.util.CollectionUtils;
|
||||
/**
|
||||
* Abstract {@link ConnectionFactory} implementation that routes
|
||||
* {@link #create()} calls to one of various target
|
||||
* {@link ConnectionFactory factories} based on a lookup key.
|
||||
* {@linkplain ConnectionFactory factories} based on a lookup key.
|
||||
* The latter is typically (but not necessarily) determined from some
|
||||
* subscriber context.
|
||||
*
|
||||
* <p> Allows to configure a {@link #setDefaultTargetConnectionFactory(Object)
|
||||
* default ConnectionFactory} as fallback.
|
||||
* <p>Allows to configure a default target {@link #setDefaultTargetConnectionFactory(Object)
|
||||
* ConnectionFactory} as a fallback.
|
||||
*
|
||||
* <p> Calls to {@link #getMetadata()} are routed to the
|
||||
* <p>Calls to {@link #getMetadata()} are routed to the
|
||||
* {@link #setDefaultTargetConnectionFactory(Object) default ConnectionFactory}
|
||||
* if configured.
|
||||
*
|
||||
@@ -125,14 +125,22 @@ public abstract class AbstractRoutingConnectionFactory implements ConnectionFact
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delegates to {@link #initialize()}.
|
||||
*/
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronizes targetConnectionFactories to resolvedConnectionFactories
|
||||
* and defaultTargetConnectionFactory to resolvedDefaultConnectionFactory.
|
||||
* Initialize the internal state of this {@code AbstractRoutingConnectionFactory}
|
||||
* by resolving the configured target ConnectionFactories.
|
||||
* @throws IllegalArgumentException if the target ConnectionFactories have not
|
||||
* been configured
|
||||
* @since 6.1
|
||||
* @see #setTargetConnectionFactories(Map)
|
||||
* @see #setDefaultTargetConnectionFactory(Object)
|
||||
*/
|
||||
public void initialize() {
|
||||
Assert.notNull(this.targetConnectionFactories, "Property 'targetConnectionFactories' must not be null");
|
||||
|
||||
Reference in New Issue
Block a user