public class SimplePropertyValueConnectionNameStrategy extends Object implements ConnectionNameStrategy, 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(String propertyName) |
Modifier and Type | Method and Description |
---|---|
String |
obtainNewConnectionName(ConnectionFactory connectionFactory) |
void |
setEnvironment(Environment environment) |
public SimplePropertyValueConnectionNameStrategy(String propertyName)
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
public String obtainNewConnectionName(ConnectionFactory connectionFactory)
obtainNewConnectionName
in interface ConnectionNameStrategy