KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > scheduling > CronScheduleInstruction


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.scheduling;
5
6
7 /**
8  * @oddjob.description A schedule that uses a cron expression. For more
9  * information on the expression please see
10  * <a HREF="http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html">
11  * http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html</a>
12  *
13  * @oddjob.example
14  *
15  * Run a job at 12pm (noon) every day.
16  *
17  * <pre>
18  * &lt;cron job="${somejob}" expression="0 0 12 * * ?" /&gt;
19  * </pre>
20  */

21 public class CronScheduleInstruction extends ScheduleInstruction {
22     private static final long serialVersionUID = 20051121;
23     
24     /**
25      * @oddjob.property
26      * @oddjob.description The cron expression.
27      * @oddjob.required Yes.
28      */

29     private String JavaDoc expression;
30     
31     
32     /**
33      * @return Returns the expression.
34      */

35     public String JavaDoc getExpression() {
36         return expression;
37     }
38     /**
39      * @param expression The expression to set.
40      */

41     public void setExpression(String JavaDoc expression) {
42         this.expression = expression;
43     }
44
45 }
46
Popular Tags