KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > crontab > RunnableCronJob


1 /*
2  This software is OSI Certified Open Source Software.
3 OSI Certified is a certification mark of the Open Source Initiative.
4
5 The license (Mozilla version 1.0) can be read at the MMBase site.
6 See http://www.MMBase.org/license
7  */

8 package org.mmbase.applications.crontab;
9
10 /**
11  * Just wraps a Runnable into a CronJob.
12  *
13  * @author Michiel Meeuwissen
14  * @since MMBase-1.8
15  */

16
17 public class RunnableCronJob extends AbstractCronJob {
18
19     protected final Runnable JavaDoc runnable;
20
21     public RunnableCronJob(Runnable JavaDoc run) {
22         runnable = run;
23     }
24     public void run() {
25         runnable.run();
26     }
27 }
28
Popular Tags