KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > patterns > backgroundtask > util > BackgroundTaskSetupReader


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: BackgroundTaskSetupReader.java,v 1.3 2007/01/07 06:15:03 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21
22 package org.opensubsystems.patterns.backgroundtask.util;
23
24 /**
25  * Interface defining methods which must be implemented by setup reader so that
26  * background tasks can read their properties using the setup reader.
27  *
28  * @version $Id: BackgroundTaskSetupReader.java,v 1.3 2007/01/07 06:15:03 bastafidli Exp $
29  * @author Miro Halas
30  * @code.reviewer Miro Halas
31  * @code.reviewed Initial revision
32  */

33 public interface BackgroundTaskSetupReader
34 {
35    /**
36     * Return name of property for start delay configuration representing
37     * the delay from creation of the task to first invocation.
38     *
39     * @return String
40     */

41    String JavaDoc getStartDelayParameterName();
42
43    /**
44     * Return default value for property for run every xxx configuration
45     * representign how often to run this task.
46     *
47     * @return String
48     */

49    String JavaDoc getRunEveryParameterName();
50 }
51
Popular Tags