KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > util > log4j > Log4jMgrFactory


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 Log4jMgrFactory
15     implements ManagerFactory
16 {
17     /* $Id: Log4jMgrFactory.java,v 1.2 2002/04/12 15:00:32 gregor Exp $ */
18
19     /**
20      * returns the ID of this registry
21      * @return the id
22      **/

23     public String JavaDoc getID() {
24         return RegistryConstants.LOG4J_MANAGER;
25     }
26         
27     /**
28      * creates a new registry object
29      * @param basedir the base directory to use for configuration purposes
30      * @return the new manager
31      * @throws salted fish
32      **/

33     public Manager newManager(String JavaDoc basedir)
34         throws RegistryException
35     {
36         return new Log4jMgr(basedir);
37     }
38 }
39
Popular Tags