org.springframework.integration.channel
Class DefaultChannelRegistry

java.lang.Object
  extended by org.springframework.integration.channel.DefaultChannelRegistry
All Implemented Interfaces:
ChannelRegistry

public class DefaultChannelRegistry
extends java.lang.Object
implements ChannelRegistry

A simple map-backed implementation of ChannelRegistry.

Author:
Mark Fisher

Field Summary
private  java.util.Map<java.lang.String,MessageChannel> channels
           
 
Fields inherited from interface org.springframework.integration.channel.ChannelRegistry
ERROR_CHANNEL_NAME
 
Constructor Summary
DefaultChannelRegistry()
           
 
Method Summary
 MessageChannel lookupChannel(java.lang.String channelName)
           
 void registerChannel(MessageChannel channel)
           
 MessageChannel unregisterChannel(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channels

private final java.util.Map<java.lang.String,MessageChannel> channels
Constructor Detail

DefaultChannelRegistry

public DefaultChannelRegistry()
Method Detail

lookupChannel

public MessageChannel lookupChannel(java.lang.String channelName)
Specified by:
lookupChannel in interface ChannelRegistry

registerChannel

public void registerChannel(MessageChannel channel)
Specified by:
registerChannel in interface ChannelRegistry

unregisterChannel

public MessageChannel unregisterChannel(java.lang.String name)
Specified by:
unregisterChannel in interface ChannelRegistry