public class SimplePropertyValueConnectionNameStrategy extends java.lang.Object implements ConnectionNameStrategy, org.springframework.context.EnvironmentAware
ConnectionNameStrategy that returns the value of a (required) property. If
the property does not exist, the connection will be given the name of the property.| Constructor and Description |
|---|
SimplePropertyValueConnectionNameStrategy(java.lang.String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
obtainNewConnectionName(ConnectionFactory connectionFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
public SimplePropertyValueConnectionNameStrategy(java.lang.String propertyName)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwarepublic java.lang.String obtainNewConnectionName(ConnectionFactory connectionFactory)
obtainNewConnectionName in interface ConnectionNameStrategy