01: package de.webman.sync;
02:
03: import de.webman.util.scheduler.SchedulerServiceFactory;
04: import de.webman.util.scheduler.SchedulerException;
05: import de.webman.util.scheduler.SchedulerService;
06:
07: /**
08: * Factory implementation for the {@link de.webman.sync.SyncScheduler}
09: * service.<p>
10: *
11: * @author <a href="mailto:gregor@webman.de">Gregor Klinke</a>
12: * @version $Revision: 1.2 $
13: **/
14: public class SyncSchedulerFactory implements SchedulerServiceFactory {
15: /* $Id: SyncSchedulerFactory.java,v 1.2 2002/04/12 14:56:01 gregor Exp $ */
16:
17: /**
18: * sets a property for this scheduler factory. the possibly properties
19: * are implementation dependend
20: * @param key the property's name
21: * @param val the property's value
22: *
23: * @throws SchedulerException if anything failed during property
24: * setting
25: **/
26: public void setProperty(String key, Object val)
27: throws SchedulerException {
28: }
29:
30: /**
31: * creates a new service instance, using the passed configuration
32: *
33: * @return the new scheduler scheduler
34: * @throws SchedulerException if anything failed during creation
35: **/
36: public SchedulerService newService() throws SchedulerException {
37: return new SyncScheduler();
38: }
39: }
|