On Tue, 07 Jun 2011 10:47:23 -0300, Dmitriy Vsekhvalnov <dvsekhval...@gmail.com> wrote:

Hi all,

Hi!

is it possible to have services bound with Bean scope? I'm using Quartz scheduler and my jobs are actually services bound in AppModule with all
dependency injection and so on.
  But i want different instances of jobs. So every time i call
     ServiceResources:getService(..., Job.class)
i want new instance back.

Is what do you want the same as the prototype scope in Spring?

I remember it was not possible to implement with Hivemind, how about
Tapestry-IOC?

Tapestry-IoC provides singleton and per-thread scopes out of the box, but you can add your own ones. Implement ServiceLifecycle2 and contribute it to the ServiceLifecycleSource service. Take a look at the PerThreadServiceLifecycle source for an example.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to