Re: [picocontainer-dev] ConfigParameterTestCase / ConfigParameter

Konstantin Priblouda <kpriblouda-/[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
--- Paul Hammant <[email protected]> wrote:

> Konstantin,
> 
> Look in Parmeter interface....
> 
>       public interface Parameter {
>           Parameter[] ZERO = new Parameter[0];
>           Parameter[] DEFAULT = new Parameter[] 
> { ComponentParameter.DEFAULT };
>           // etc
>      }
> 
> We could have an extra constant called say
> ADAPT_PARAMS or similar  
> that could negate the need for newing up
> ConfigParameter as many  
> times as there are params

well, the point of config parameters is explicit
binding on certain configuration entry. 
(thus it has to be user choice) 

At the moment I'm not sure how automatical 
binding can be done. 

> Also, Ithink we should still keep addConfig(..)  -
> it means something  
> for people that are using pico as a bean, and not
> leveraging args  
> from elsewhere.

addConfig() is basically a wrapper for
addComponent(string,string) - I think it 
is too  many  to justify own interface 
methiod. 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

    http://xircles.codehaus.org/manage_email
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.