I've been using JCrontab, and today I needed to schedule the execution of a method on a class I already have instantiated.
Could JCrontab be improved to support something like :
myClass = new MyClass();
crontab.addTask( myClass, "method");
So that JCrontab wouldn't create a new Class when the time comes to execute the task, but instead keep a reference to a class I provided, and call the "method" method on it.
I wouldn't mind doing it, if you included it the next realease.
thanks
Ricardo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've been using JCrontab, and today I needed to schedule the execution of a method on a class I already have instantiated.
Could JCrontab be improved to support something like :
myClass = new MyClass();
crontab.addTask( myClass, "method");
So that JCrontab wouldn't create a new Class when the time comes to execute the task, but instead keep a reference to a class I provided, and call the "method" method on it.
I wouldn't mind doing it, if you included it the next realease.
thanks
Ricardo