RE: [picocontainer-dev] Jason van Zyl's need for Plexus
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Paul,
________________________________
From: Paul Hammant
Sent: Monday, November 19, 2007 5:17 AM
Cc: Jason van Zyl
Subject: [picocontainer-dev] Jason van Zyl's need for Plexus
http://svn.codehaus.org/picocontainer/java/2.x/trunk/pico/container/src/test/org/picocontainer/adapters/JasonsTestCase.java
Is this roughly what you need Jason ?
________________________________
What's different from:
mpc.addComponent(bindKey(Apple.class, "one"), new AppleImpl(1));
to:
mpc.addComponent("one", new AppleImpl(1));
apart from the "namespace"? Is it really the intend to generate such kind of a "namespace" for the key? In that case it would be equivalent to:
mpc.addComponent(Apple.class.getName() + ":one"), new AppleImpl(1));
... 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).
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email