Re: How to create analog of Spring FactoryBean?

2009-09-17 Thread Paul Field
: http://www.nabble.com/Re%3A-How-to-create-analog-of-Spring-FactoryBean--p25349917.html The main downside I found is that you can't use the IOC container to proxy/decorate/advise the created instance. - Paul --- This e-mail may contain confidential and/or privileged information. If you

Re: How to create analog of Spring FactoryBean?

2009-09-16 Thread Kristian Marinkovic
implementation) that creates a new object everytime an injection is made. -- View this message in context: http://www.nabble.com/How-to-create-analog-of-Spring-FactoryBean--tp25346888p25447319.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: How to create analog of Spring FactoryBean?

2009-09-14 Thread Peter Niederwieser
) that creates a new object everytime an injection is made. -- View this message in context: http://www.nabble.com/How-to-create-analog-of-Spring-FactoryBean--tp25346888p25447319.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: How to create analog of Spring FactoryBean?

2009-09-09 Thread Andrey Larionov
Also interesting, is in Tapestry dispose mechanism like in spring? (Implementing DisposableBean) On Wed, Sep 9, 2009 at 09:06, Andrey Larionovanlario...@gmail.com wrote: thanks paul. On Tue, Sep 8, 2009 at 20:46, Paul Fieldpaul.fi...@db.com wrote: Hi Andrey, Thiago H. de Paula Figueiredo

How to create analog of Spring FactoryBean?

2009-09-08 Thread Andrey Larionov
I want to remove a spring part from my project if possible. But i need analog of spring FactoryBean. Read documentation but dosnt found any point. I think solution is near of ObjectLocator or ObjectProvider, but have no idea how to start. Anybody solve this problem?

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Andrey Larionov
If i provide a factory bean as a property value, Spring use getObject return, to set property. On Tue, Sep 8, 2009 at 18:27, Andrey Larionovanlario...@gmail.com wrote: No, FactoryBean can create new instance on every call of getObject. On Tue, Sep 8, 2009 at 18:10, Sebastian

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Sebastian Hennebrueder
Andrey Larionov schrieb: If i provide a factory bean as a property value, Spring use getObject return, to set property. On Tue, Sep 8, 2009 at 18:27, Andrey Larionovanlario...@gmail.com wrote: No, FactoryBean can create new instance on every call of getObject. On Tue, Sep 8, 2009 at 18:10,

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Thiago H. de Paula Figueiredo
Em Tue, 08 Sep 2009 11:27:06 -0300, Andrey Larionov anlario...@gmail.com escreveu: No, FactoryBean can create new instance on every call of getObject. Then you can create a new Tapestry-IoC scope (ServiceLifecycle implementation) that creates a new object everytime an injection is made.

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Sebastian Hennebrueder
Andrey Larionov schrieb: I want to remove a spring part from my project if possible. But i need analog of spring FactoryBean. Read documentation but dosnt found any point. I think solution is near of ObjectLocator or ObjectProvider, but have no idea how to start. Anybody solve this problem?

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Andrey Larionov
No, FactoryBean can create new instance on every call of getObject. On Tue, Sep 8, 2009 at 18:10, Sebastian Hennebruederuse...@laliluna.de wrote: Spring or Pico Container or Guice or whatevery you like. - To unsubscribe,

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Paul Field
Hi Andrey, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote on 08/09/2009 15:51:14: Em Tue, 08 Sep 2009 11:27:06 -0300, Andrey Larionov anlario...@gmail.com escreveu: No, FactoryBean can create new instance on every call of getObject. Then you can create a new Tapestry-IoC

Re: How to create analog of Spring FactoryBean?

2009-09-08 Thread Andrey Larionov
thanks paul. On Tue, Sep 8, 2009 at 20:46, Paul Fieldpaul.fi...@db.com wrote: Hi Andrey, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote on 08/09/2009 15:51:14: Em Tue, 08 Sep 2009 11:27:06 -0300, Andrey Larionov anlario...@gmail.com escreveu: No, FactoryBean can create new