01: package de.webman.config;
02:
03: import de.webman.util.registry.ManagerFactory;
04: import de.webman.util.registry.Manager;
05: import de.webman.util.registry.RegistryException;
06: import de.webman.util.registry.RegistryConstants;
07:
08: /**
09: * The factory class for {@link de.webman.config.ConfigMgr}
10: *
11: * @author <a href="mailto:gregor@webman.de">Gregor Klinke</a>
12: * @version $Revision: 1.2 $
13: **/
14: public class ConfigMgrFactory implements ManagerFactory {
15: /* $Id: ConfigMgrFactory.java,v 1.2 2002/04/12 14:27:43 gregor Exp $ */
16:
17: /**
18: * returns the ID of this registry
19: * @return the id, never <code>null</code>
20: **/
21: public String getID() {
22: return RegistryConstants.CONFIG_MANAGER;
23: }
24:
25: /**
26: * creates a new registry object
27: * @param basedir the base directory to use for configuration purposes
28: * @return the manager
29: * @throws RegistryException if anything fails during creation
30: **/
31: public Manager newManager(String basedir) throws RegistryException {
32: return new ConfigMgr(basedir);
33: }
34: }
|