Actually I was preparing a blog post for the new Tapestry 5.3 features
(Igor already beat me to it!) and while coding an example I thought
the real power of such an executor will be ioc (@Inject)

So I can write a job

public class MyJob implements Runnable {

   @Inject
   private MyService service;

   public void run(){
      service.use();
   }

}

and later on

periodicExecutor.addJob(hourlySchedule(), "MyJob", MyJob.class);

ObjectLocator.autobind() will internally do the rest


On Mon, Aug 22, 2011 at 5:44 PM, Howard Lewis Ship <[email protected]> wrote:
> Seems reasonable to me. Do you have a specific need for that?  I'e
> found pretty often that when I try to predict people's needs, I end up
> spinning my wheels. Most of the enhancements I've added in 5.2 and 5.3
> are based on specific needs from client projects, sometimes
> generalized a bit.
>
> On Sun, Aug 21, 2011 at 5:27 PM, Taha Hafeez <[email protected]> wrote:
>> Hi Everyone
>>
>> Was looking at new PeriodicExecutorImpl.java. It takes an instance of
>> a Runnable as a job. What if we could add another convenience method
>> which would take Class<? extends Runnable> as argument and use
>> autobuild to create an instance.
>>
>> --
>> Regards
>>
>> Taha Hafeez Siddiqi (tawus)
>> http://tawus.wordpress.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to