On Sun, 2007-09-09 at 14:00 +0200, Roland Weber wrote:
> Oleg Kalnichevski wrote:
> > 
> > I was thinking about trying to do away with those static classes and to
> > replace them with plain old java beans, so they could be manufactured
> > using a DI framework such Spring.
> > 
> > Something like o.a.h.p.HttpConnectionParamBean implementing
> > o.a.h.p.HttpConnectionParams maybe?
> 
> How would the beans relate to HttpParams implementations?
> 

Probably something along this line

class SomeParams extends BasicHttpParams {
    
    public static final String SOME_VALUE = "some.value";
    
    public String getSomeValue() {
        return (String) getParameter(SOME_VALUE);
    }
    
    public void setSomeValue(final String value) {
        setParameter(SOME_VALUE, value);
    }
    
}

Those classes could be arranged into a hierarchy, as you suggested. 

Just as an idea.

Oleg


> cheers,
>   Roland
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to