1 package de.webman.util.scheduler;2 3 4 /**5 * classes implementing this protocol are the factory classes for6 * implementations of the {@link de.webman.util.scheduler.SchedulerService}7 * classes.<p>8 *9 * @author <a HREF="mailto:gregor@webman.de">Gregor Klinke</a>10 * @version $Revision: 1.2 $11 **/12 public interface SchedulerServiceFactory13 {14 /* $Id: SchedulerServiceFactory.java,v 1.2 2002/04/12 12:45:53 gregor Exp $ */15 16 /**17 * sets a property for this scheduler factory. the possibly properties18 * are implementation dependend19 * @param key the property's name20 * @param val the property's value21 *22 * @throws SchedulerException if anything failed during property23 * setting24 **/25 void setProperty(String key, Object val) throws SchedulerException;26 27 /**28 * creates a new service instance, using the passed configuration29 * @return the new service30 * @throws SchedulerException if anything failed during creation31 **/32 SchedulerService newService()33 throws SchedulerException;34 }35