[picocontainer-dev] Lifecycle usage question

Paul Hammant <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>

CachingBehavior, when start(PicoContainer) is called, hands off thru  
a series of delegations to AbstractInjector to actually call start 
(Object) on the LifecycleStrategy

This seems odd.  CachingBehavior (during instantiation) has a handle  
on the same LifecycleStrategy so could easily do it there.  Meaning  
the Injectors (all subclasses of AbstractInjector) could lose their  
Lifecycle logic - it seems unassociated there.

I could refactor to that, but then lifecycle will only work with  
Caching or Pooling behavior.

So the question - does anyone have any use for Lifecycle on  
components that are not cached/pooled ?

- Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.