[picocontainer-dev] Chg 4832 - Generic collections process like arrays do now.

Paul Hammant <[email protected]> Sun, 6 Jul 2008 10:34:41 -0700
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Paired with Pete yesterday, a change to Parameter has allowed  
components to have generic collections as a declared injectable.

We're at a crossroads though, there are three methods in Parameter  
that need to change somehow:

   Object resolveInstance(PicoContainer container, ComponentAdapter  
adapter, Class expectedType  ...etc
   boolean isResolvable(PicoContainer container, ComponentAdapter  
adapter, Class expectedType  ...etc
   void verify(PicoContainer container,  ComponentAdapter adapter,  
Class expectedType  ...etc

We could change the third param to Type from Class

   Object resolveInstance(PicoContainer container, ComponentAdapter  
adapter, Type expectedType  ...etc
   boolean isResolvable(PicoContainer container, ComponentAdapter  
adapter, Type expectedType  ...etc
   void verify(PicoContainer container,  ComponentAdapter adapter,  
Type expectedType  ...etc

Or we could do an overloaded route by having a second set of three and  
use deprecated on the old three.

The current commit has changed two and overloaded one.

My view is that PC and MPC are the interfaces to be more reverent  
about, and that Parameter is more marginal for backwards compatibility.

Thoughts?

Regards,

- Paul


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email