Re: [picocontainer-dev] Jason van Zyl's need for Plexus

peter royal <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
On Nov 19, 2007, at 1:19 AM, Jörg Schaible wrote:
> Is it really the intend to generate such kind of a "namespace" for  
> the key?

yes

> In that case it would be equivalent to:
>
> mpc.addComponent(Apple.class.getName() + ":one"), new AppleImpl(1));

absolutely

> ... just like to understand the use case before we're going to add a  
> new handling for special type of keys (apart from Class types).

i don't think there's anything new/special required, it was more of an  
illustration for jason on how it could be done.

(the plexus model is similar to the old Avalon/Excalibur one where you  
depend on either a class type, or a class type + "role hint". the  
latter being what paul's trying to illustrate..)

-pete

-- 
(peter.royal|osi)@pobox.com - http://fotap.org/~osi
smime.p7s (application/pkcs7-signature, 2.4 KB) - not displayed
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.