public class MethodInvokingCorrelationStrategy extends Object implements CorrelationStrategy, org.springframework.beans.factory.BeanFactoryAware
CorrelationStrategy
implementation that works as an adapter to another bean.Constructor and Description |
---|
MethodInvokingCorrelationStrategy(Object object,
Method method) |
MethodInvokingCorrelationStrategy(Object object,
String methodName) |
Modifier and Type | Method and Description |
---|---|
Object |
getCorrelationKey(org.springframework.messaging.Message<?> message)
Find the correlation key for the given message.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public MethodInvokingCorrelationStrategy(Object object, String methodName)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public Object getCorrelationKey(org.springframework.messaging.Message<?> message)
CorrelationStrategy
null
, but throw an exception.getCorrelationKey
in interface CorrelationStrategy
message
- The message.