i was hoping someone already did it :)

Last time i was trying to do it with Hivemind, proxy created a new instance
every method call, and this is not what i want. I mostly likely want
no-proxy, but just new instance.

On Tue, Jun 7, 2011 at 6:32 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> 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
>

Reply via email to