Package com.consol.citrus.channel
Class ChannelEndpoint
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpoint
-
- com.consol.citrus.channel.ChannelEndpoint
-
- All Implemented Interfaces:
Named,Endpoint,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
- Direct Known Subclasses:
ChannelSyncEndpoint
public class ChannelEndpoint extends AbstractEndpoint implements org.springframework.beans.factory.BeanFactoryAware
Basic message endpoint sends and receives message from Spring message channel. When receiving messages channel must implementPollableChannelinterface. When using message selector channel must be of typeMessageSelectingQueueChannel.- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description ChannelEndpoint()Default constructor initializing endpoint configuration.ChannelEndpoint(ChannelEndpointConfiguration endpointConfiguration)Constructor with endpoint configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.consol.citrus.messaging.SelectiveConsumercreateConsumer()com.consol.citrus.messaging.ProducercreateProducer()ChannelEndpointConfigurationgetEndpointConfiguration()voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)Sets the bean factory for channel resolver.-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpoint
getActor, getConsumerName, getName, getProducerName, setActor, setName
-
-
-
-
Constructor Detail
-
ChannelEndpoint
public ChannelEndpoint()
Default constructor initializing endpoint configuration.
-
ChannelEndpoint
public ChannelEndpoint(ChannelEndpointConfiguration endpointConfiguration)
Constructor with endpoint configuration.- Parameters:
endpointConfiguration-
-
-
Method Detail
-
createConsumer
public com.consol.citrus.messaging.SelectiveConsumer createConsumer()
- Specified by:
createConsumerin interfaceEndpoint
-
createProducer
public com.consol.citrus.messaging.Producer createProducer()
- Specified by:
createProducerin interfaceEndpoint
-
getEndpointConfiguration
public ChannelEndpointConfiguration getEndpointConfiguration()
- Specified by:
getEndpointConfigurationin interfaceEndpoint- Overrides:
getEndpointConfigurationin classAbstractEndpoint
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansExceptionSets the bean factory for channel resolver.- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException- See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)
-
-