1 17 18 package org.apache.avalon.logging.logkit; 19 20 import java.util.Map ; 21 22 import org.apache.avalon.util.i18n.ResourceManager; 23 import org.apache.avalon.util.i18n.Resources; 24 25 31 class DefaultLogTargetFactoryManager implements LogTargetFactoryManager 32 { 33 37 private static final Resources REZ = 38 ResourceManager.getPackageResources( DefaultLogTargetFactoryManager.class ); 39 40 44 47 private final Map m_map; 48 49 53 57 public DefaultLogTargetFactoryManager( Map map ) throws Exception 58 { 59 if( null == map ) 60 { 61 throw new NullPointerException ( "map" ); 62 } 63 m_map = map; 64 } 65 66 70 76 public LogTargetFactory getLogTargetFactory( final String key ) 77 { 78 return (LogTargetFactory) m_map.get( key ); 79 } 80 } 81 | Popular Tags |