Discussion:
picocontainer-script and ComponentMonitor
Troy Kinsella
2008-08-14 01:29:17 UTC
Permalink
Hello,

I posted a message to this list about two weeks ago regarding the use of
a ScriptedContainerBuilder with a custom LifecycleStrategy. My problem
then was that after I'd set up a parent container with my custom
LifecycleStrategy, then created a child container from a BeanShell
script, the LifecycleStrategy was not propagating to the child
container. Paul's advice was to create the child container in the
BeanShell script like so:

pico = parent.makeChildContainer();

.. and that fixed the problem.

However, I'm now facing a similar problem with a ComponentMonitor. The
makeChildContainer() method does not pass the parent ComponentMonitor
into the child container constructor. Perhaps purposely?

So, my question is, how can I get a specific ComponentMonitor into the
child container? Apologies if I'm just missing the clear way to do so.

Thanks,
Troy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Paul Hammant
2008-08-14 06:50:40 UTC
Permalink
Fixed in trunk Troy - expect release 2.5.1 shortly.
Regards,

- Paul
Post by Troy Kinsella
Hello,
I posted a message to this list about two weeks ago regarding the use of
a ScriptedContainerBuilder with a custom LifecycleStrategy. My problem
then was that after I'd set up a parent container with my custom
LifecycleStrategy, then created a child container from a BeanShell
script, the LifecycleStrategy was not propagating to the child
container. Paul's advice was to create the child container in the
pico = parent.makeChildContainer();
.. and that fixed the problem.
However, I'm now facing a similar problem with a ComponentMonitor. The
makeChildContainer() method does not pass the parent ComponentMonitor
into the child container constructor. Perhaps purposely?
So, my question is, how can I get a specific ComponentMonitor into the
child container? Apologies if I'm just missing the clear way to do so.
Thanks,
Troy
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Paul Hammant
2008-08-14 16:41:14 UTC
Permalink
released as 2.5.1 :-)

Regards,

- Paul
Post by Troy Kinsella
Hello,
I posted a message to this list about two weeks ago regarding the use of
a ScriptedContainerBuilder with a custom LifecycleStrategy. My problem
then was that after I'd set up a parent container with my custom
LifecycleStrategy, then created a child container from a BeanShell
script, the LifecycleStrategy was not propagating to the child
container. Paul's advice was to create the child container in the
pico = parent.makeChildContainer();
.. and that fixed the problem.
However, I'm now facing a similar problem with a ComponentMonitor. The
makeChildContainer() method does not pass the parent ComponentMonitor
into the child container constructor. Perhaps purposely?
So, my question is, how can I get a specific ComponentMonitor into the
child container? Apologies if I'm just missing the clear way to do so.
Thanks,
Troy
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...