Package com.consol.citrus.channel
Class ChannelEndpoint
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpoint
-
- com.consol.citrus.channel.ChannelEndpoint
-
- All Implemented Interfaces:
com.consol.citrus.common.Named,com.consol.citrus.endpoint.Endpoint,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
- Direct Known Subclasses:
ChannelSyncEndpoint
public class ChannelEndpoint extends com.consol.citrus.endpoint.AbstractEndpoint implements org.springframework.beans.factory.BeanFactoryAwareBasic 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.
-
-
-
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 interfacecom.consol.citrus.endpoint.Endpoint
-
createProducer
public com.consol.citrus.messaging.Producer createProducer()
- Specified by:
createProducerin interfacecom.consol.citrus.endpoint.Endpoint
-
getEndpointConfiguration
public ChannelEndpointConfiguration getEndpointConfiguration()
- Specified by:
getEndpointConfigurationin interfacecom.consol.citrus.endpoint.Endpoint- Overrides:
getEndpointConfigurationin classcom.consol.citrus.endpoint.AbstractEndpoint
-
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)
-
-