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