avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: Dependency Lookup Was: OpenIM 1.1 (based on Merlin 3.0 beta1)
Date Mon, 29 Sep 2003 14:26:45 GMT

hammett wrote:

>Hi. I was checking OpenIM implementation and found some things:
>- Did you consider using prevayler as a Storage?
>- The AccountRepositoryHolderImpl has a ownership issue (that I face a
>few weeks ago by myself)
>  - You declare that 'AccountRepositoryHolderImpl' class depends on
>Account service
>  - After that you *create* on or more Account (m_serviceManager.lookup(
>"Account" );)
>Now the question: how merlin handles the Account lookup? It creates a
>new one for each lookup (his lifestyle is 'transient') or returns the
>same one? 

A transient lifestyle returns a totally new instance for each lookup.

>Maybe the component dependency could declare a cardinality.

Can you provide a little more detail about what your thinking here?



Stephen J. McConnell

To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org

View raw message