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()
          Factory method to be overridden by subclasses.
 MessageChannel getChannel(java.lang.String name, java.util.List<ChannelInterceptor> interceptors)
          Creates a channel based on the provided name and 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(java.lang.String name,
                                       java.util.List<ChannelInterceptor> interceptors)
Description copied from interface: ChannelFactory
Creates a channel based on the provided name and interceptors.

Specified by:
getChannel in interface ChannelFactory

createChannelInternal

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