Class 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.BeanFactoryAware
    Basic message endpoint sends and receives message from Spring message channel. When receiving messages channel must implement PollableChannel interface. When using message selector channel must be of type MessageSelectingQueueChannel.
    Since:
    1.4
    Author:
    Christoph Deppisch
    • 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:
        createConsumer in interface com.consol.citrus.endpoint.Endpoint
      • createProducer

        public com.consol.citrus.messaging.Producer createProducer()
        Specified by:
        createProducer in interface com.consol.citrus.endpoint.Endpoint
      • getEndpointConfiguration

        public ChannelEndpointConfiguration getEndpointConfiguration()
        Specified by:
        getEndpointConfiguration in interface com.consol.citrus.endpoint.Endpoint
        Overrides:
        getEndpointConfiguration in class com.consol.citrus.endpoint.AbstractEndpoint
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Sets the bean factory for channel resolver.
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException
        See Also:
        BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)