org.springframework.integration.router
Class MethodInvokingRouter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
org.springframework.integration.router.MethodInvokingRouter
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, MessageHandler, NamedComponent
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
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString, writeMessageHistory |
MethodInvokingRouter
public MethodInvokingRouter(Object object,
Method method)
MethodInvokingRouter
public MethodInvokingRouter(Object object,
String methodName)
MethodInvokingRouter
public MethodInvokingRouter(Object object)
onInit
public final void onInit()
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class AbstractChannelNameResolvingMessageRouter
getChannelIndicatorList
protected List<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
Copyright © 2010. All Rights Reserved.