net.sourceforge.hiveevents
Class ChannelRepositoryImpl

java.lang.Object
  extended by net.sourceforge.hiveevents.ChannelRepositoryImpl
All Implemented Interfaces:
ChannelRepository

public class ChannelRepositoryImpl
extends java.lang.Object
implements ChannelRepository

Default implementation of a ChannelRepository.

Author:
Jean-Francois Poilpret

Constructor Summary
ChannelRepositoryImpl(org.apache.commons.logging.Log logger, java.util.Map<java.lang.String,ChannelContribution> config)
           
 
Method Summary
 Channel<?> getChannel(java.lang.String name)
          Get an event channel by its name (unique identifier).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelRepositoryImpl

public ChannelRepositoryImpl(org.apache.commons.logging.Log logger,
                             java.util.Map<java.lang.String,ChannelContribution> config)
Method Detail

getChannel

public Channel<?> getChannel(java.lang.String name)
Description copied from interface: ChannelRepository
Get an event channel by its name (unique identifier).

Specified by:
getChannel in interface ChannelRepository
Parameters:
name - identifier of the channel
Returns:
the channel for name, or null if there is no such channel in configuration