Class SimplePropertyValueConnectionNameStrategy
- java.lang.Object
-
- org.springframework.amqp.rabbit.connection.SimplePropertyValueConnectionNameStrategy
-
- All Implemented Interfaces:
ConnectionNameStrategy,org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
public class SimplePropertyValueConnectionNameStrategy extends java.lang.Object implements ConnectionNameStrategy, org.springframework.context.EnvironmentAware
AConnectionNameStrategythat returns the value of a (required) property. If the property does not exist, the connection will be given the name of the property.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description SimplePropertyValueConnectionNameStrategy(java.lang.String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringobtainNewConnectionName(ConnectionFactory connectionFactory)voidsetEnvironment(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
obtainNewConnectionName
public java.lang.String obtainNewConnectionName(ConnectionFactory connectionFactory)
- Specified by:
obtainNewConnectionNamein interfaceConnectionNameStrategy
-
-