org.mmbase.applications.crontab
Class RunnableCronJob

java.lang.Object
  extended by org.mmbase.applications.crontab.AbstractCronJob
      extended by org.mmbase.applications.crontab.RunnableCronJob
All Implemented Interfaces:
Runnable, CronJob

public class RunnableCronJob
extends AbstractCronJob

Just wraps a Runnable into a CronJob. Runnable can optionally be configured using 'bean' properties, where the key/values are read from the configuration string using StringSplitter.map(java.lang.String).

Since:
MMBase-1.8
Version:
$Id: RunnableCronJob.java 42079 2010-05-03 09:06:58Z michiel $
Author:
Michiel Meeuwissen

Field Summary
protected  Runnable runnable
           
 
Fields inherited from class org.mmbase.applications.crontab.AbstractCronJob
cronEntry
 
Constructor Summary
RunnableCronJob(Runnable run)
           
 
Method Summary
protected  void init()
          You can init by overriding this (no need to call super.init) This is called by AbstractCronJob.init(CronEntry)
 void run()
          Implement this.
 
Methods inherited from class org.mmbase.applications.crontab.AbstractCronJob
getEntry, init, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runnable

protected final Runnable runnable
Constructor Detail

RunnableCronJob

public RunnableCronJob(Runnable run)
Method Detail

run

public void run()
Description copied from class: AbstractCronJob
Implement this.

Specified by:
run in interface Runnable
Specified by:
run in interface CronJob
Specified by:
run in class AbstractCronJob

init

protected void init()
Description copied from class: AbstractCronJob
You can init by overriding this (no need to call super.init) This is called by AbstractCronJob.init(CronEntry)

Overrides:
init in class AbstractCronJob


MMBase 2.0-SNAPSHOT - null