On Tuesday 10 February 2004 15:59, Stephan Coboos wrote:
The "AnotherComponent" is pooled. What I want to do is to get an new
"MyComponent" from the serviceManager like in initialize() but
initialize() is only called once at instanciation time. So how can I get
a new component "MyComponent" from the serviceManager? Is there another
method avaiable which will be called between the pool and the lookup of
the serviceManager so I can get "MyComponent" there?
You need to declare the LifeStyle=transient for MyComponent. :o)
See http://avalon.apache.org/meta/tools/tags/type.html
Niclas
Hello Niclas,
thank you for you for your answer but I do not understand. I have to declare something in the comment to get my component working correctly? H�?
And if I do so, why should it work? The doc says "transient = new instance are created on demand". What happens if MyComponent should be poolable, too?
In short: I'am searching for a solution to initializing something in a component coming from the pool and recycle them later:
foo() - This method I'am serching. It should initialize the component comming from a pool.
recycle() - This method already exists. It cleans up before returning to the pool.
Is LifeStyle=transient the right way for that?
PS: I'am using Cocoon, does it work there, too?
Thank you.
Best Regards Stephan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
