KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > sync > SyncSchedulerFactory


1 package de.webman.sync;
2
3 import de.webman.util.scheduler.SchedulerServiceFactory;
4 import de.webman.util.scheduler.SchedulerException;
5 import de.webman.util.scheduler.SchedulerService;
6
7 /**
8  * Factory implementation for the {@link de.webman.sync.SyncScheduler}
9  * service.<p>
10  *
11  * @author <a HREF="mailto:gregor@webman.de">Gregor Klinke</a>
12  * @version $Revision: 1.2 $
13  **/

14 public class SyncSchedulerFactory
15     implements SchedulerServiceFactory
16 {
17     /* $Id: SyncSchedulerFactory.java,v 1.2 2002/04/12 14:56:01 gregor Exp $ */
18
19     /**
20      * sets a property for this scheduler factory. the possibly properties
21      * are implementation dependend
22      * @param key the property's name
23      * @param val the property's value
24      *
25      * @throws SchedulerException if anything failed during property
26      * setting
27      **/

28     public void setProperty(String JavaDoc key, Object JavaDoc val)
29         throws SchedulerException
30     {
31     }
32
33     /**
34      * creates a new service instance, using the passed configuration
35      *
36      * @return the new scheduler scheduler
37      * @throws SchedulerException if anything failed during creation
38      **/

39     public SchedulerService newService()
40         throws SchedulerException
41     {
42         return new SyncScheduler();
43     }
44 }
45
Popular Tags