public class PurgeMessageChannelAction extends AbstractTestAction implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
QueueChannel
. Action receives
a list of channel objects or a list of channel names that are resolved dynamically at runtime.description
Constructor and Description |
---|
PurgeMessageChannelAction()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
doExecute(TestContext context)
Subclasses may add custom execution logic here.
|
List<String> |
getChannelNames()
Gets the channelNames.
|
org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> |
getChannelResolver()
Gets the channelResolver.
|
List<org.springframework.messaging.MessageChannel> |
getChannels()
Gets the channels.
|
org.springframework.integration.core.MessageSelector |
getMessageSelector()
Gets the messageSelector.
|
protected org.springframework.messaging.MessageChannel |
resolveChannelName(String channelName)
Resolve the channel by name.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Sets the bean factory for channel resolver.
|
PurgeMessageChannelAction |
setChannelNames(List<String> channelNames)
Sets the channelNames.
|
PurgeMessageChannelAction |
setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
Sets the channelResolver.
|
PurgeMessageChannelAction |
setChannels(List<org.springframework.messaging.MessageChannel> channels)
Sets the channels.
|
PurgeMessageChannelAction |
setMessageSelector(org.springframework.integration.core.MessageSelector messageSelector)
Sets the messageSelector.
|
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
public PurgeMessageChannelAction()
public void doExecute(TestContext context)
AbstractTestAction
doExecute
in class AbstractTestAction
protected org.springframework.messaging.MessageChannel resolveChannelName(String channelName)
channelName
- the name to resolvepublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
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
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)
public List<String> getChannelNames()
public PurgeMessageChannelAction setChannelNames(List<String> channelNames)
channelNames
- the channelNames to setpublic List<org.springframework.messaging.MessageChannel> getChannels()
public PurgeMessageChannelAction setChannels(List<org.springframework.messaging.MessageChannel> channels)
channels
- the channels to setpublic org.springframework.integration.core.MessageSelector getMessageSelector()
public PurgeMessageChannelAction setMessageSelector(org.springframework.integration.core.MessageSelector messageSelector)
messageSelector
- the messageSelector to setpublic org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> getChannelResolver()
public PurgeMessageChannelAction setChannelResolver(org.springframework.messaging.core.DestinationResolver<org.springframework.messaging.MessageChannel> channelResolver)
channelResolver
- the channelResolver to setCopyright © 2008–2017 ConSol Software GmbH. All rights reserved.