1 package de.webman.util.log4j;2 3 import de.webman.util.registry.ManagerFactory;4 import de.webman.util.registry.Manager;5 import de.webman.util.registry.RegistryException;6 import de.webman.util.registry.RegistryConstants;7 8 /**9 * The factory class for {@link de.webman.util.log4j.Log4jMgr}10 *11 * @author <a HREF="mailto:gregor@webman.de">Gregor Klinke</a>12 * @version $Revision: 1.2 $13 **/14 public class Log4jMgrFactory15 implements ManagerFactory16 {17 /* $Id: Log4jMgrFactory.java,v 1.2 2002/04/12 15:00:32 gregor Exp $ */18 19 /**20 * returns the ID of this registry21 * @return the id22 **/23 public String getID() {24 return RegistryConstants.LOG4J_MANAGER;25 }26 27 /**28 * creates a new registry object29 * @param basedir the base directory to use for configuration purposes30 * @return the new manager31 * @throws salted fish32 **/33 public Manager newManager(String basedir) 34 throws RegistryException 35 {36 return new Log4jMgr(basedir);37 }38 }39