Re: [picocontainer-dev] Lazy lifecycle
Paul Hammant <[email protected]> Tue, 26 May 2009 11:52:05 -0500
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
That should be easy.
Can to get us half way by writing a testcase :-) Perhaps a mod to
StartableLifecycleStrategyTestCase
I expect I'll be subclassing (or better) StartableLifecycleStrategy ...
Regards,
- Paul
On May 26, 2009, at 10:44 AM, Mark Hobson wrote:
> Hi there,
>
> I need a lazy lifecycle strategy within Pico, as in one that will
> start a component only once it is required. Currently
> container.start() will eagerly instantiate lifecycled components
> before they are actually needed. I'd like to intercept when
> components are instantiated and start them before they are used.
>
> Is my only option to implement a behaviour to achieve this? It'd be
> good if it could interoperate with the container's lifecycle strategy.
>
> Cheers,
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email