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