01: package de.webman.util.scheduler;
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.util.scheduler.SchedulerMgr}
10: *
11: * @author <a href="mailto:gregor@webman.de">Gregor Klinke</a>
12: * @version $Revision: 1.2 $
13: **/
14: public class SchedulerMgrFactory implements ManagerFactory {
15: /* $Id: SchedulerMgrFactory.java,v 1.2 2002/04/12 12:45:53 gregor Exp $ */
16:
17: /**
18: * returns the ID of this registry
19: **/
20: public String getID() {
21: return RegistryConstants.SCHEDULER_MANAGER;
22: }
23:
24: /**
25: * creates a new registry object
26: * @param basedir the base directory to use for configuration purposes
27: * @return the new manager
28: * @throws RegistryException if anything failed during creation
29: **/
30: public Manager newManager(String basedir) throws RegistryException {
31: return new SchedulerMgr(basedir);
32: }
33: }
|