org.springframework.integration.channel.factory
Class AbstractChannelFactory

java.lang.Object
  extended by org.springframework.integration.channel.factory.AbstractChannelFactory
All Implemented Interfaces:
ChannelFactory
Direct Known Subclasses:
DirectChannelFactory, PriorityChannelFactory, QueueChannelFactory, RendezvousChannelFactory, ThreadLocalChannelFactory

public abstract class AbstractChannelFactory
extends java.lang.Object
implements ChannelFactory

Base class for ChannelFactory implementations. Subclasses should override createChannelInternal().

Author:
Marius Bogoevici

Constructor Summary
AbstractChannelFactory()
           
 
Method Summary
protected abstract  AbstractMessageChannel createChannelInternal(DispatcherPolicy dispatcherPolicy)
          Factory method to be overridden by subclasses.
 MessageChannel getChannel(DispatcherPolicy dispatcherPolicy, java.util.List<ChannelInterceptor> interceptors)
          Creates a channel, based on the provided dispatcher policy, and with the given interceptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractChannelFactory

public AbstractChannelFactory()
Method Detail

getChannel

public final MessageChannel getChannel(DispatcherPolicy dispatcherPolicy,
                                       java.util.List<ChannelInterceptor> interceptors)
Description copied from interface: ChannelFactory
Creates a channel, based on the provided dispatcher policy, and with the given interceptors.

Specified by:
getChannel in interface ChannelFactory
Returns:

createChannelInternal

protected abstract AbstractMessageChannel createChannelInternal(DispatcherPolicy dispatcherPolicy)
Factory method to be overridden by subclasses. It assumes that subclasses will return subclasses of AbstractMessageChannel.