org.springframework.integration.router
Class MethodInvokingRouter
java.lang.Object
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
org.springframework.integration.router.MethodInvokingRouter
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, MessageHandler
public class MethodInvokingRouter
- extends AbstractChannelNameResolvingMessageRouter
A Message Router that invokes the specified method on the given object. The
method's return value may be a single MessageChannel instance, a single
String to be interpreted as a channel name, or a Collection (or Array) of
either type. If the method returns channel names, then a
ChannelResolver
is required.
- Author:
- Mark Fisher
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Method Summary |
protected java.util.List<java.lang.Object> |
getChannelIndicatorList(Message<?> message)
Subclasses must implement this method to return the channel indicators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInvokingRouter
public MethodInvokingRouter(java.lang.Object object,
java.lang.reflect.Method method)
MethodInvokingRouter
public MethodInvokingRouter(java.lang.Object object,
java.lang.String methodName)
MethodInvokingRouter
public MethodInvokingRouter(java.lang.Object object)
getChannelIndicatorList
protected java.util.List<java.lang.Object> getChannelIndicatorList(Message<?> message)
- Description copied from class:
AbstractChannelNameResolvingMessageRouter
- Subclasses must implement this method to return the channel indicators.
- Specified by:
getChannelIndicatorList
in class AbstractChannelNameResolvingMessageRouter