hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ossf...@dubioso.net>
Subject Re: [HttpClient] HttpClient 4.0 progress report
Date Sun, 06 May 2007 09:36:25 GMT
Hi Oleg,

> I have a fairly simple rule to deal with the problem: inject requisite
> dependencies for which no reasonable default impl can be created through
> a constructor, optional dependencies - through setters. With a few
> notable exceptions this approach works well for me.

I'm fine with setters in the implementation class.
I just wouldn't want them in the interface.

Since I don't use DI frameworks, my take on setters is:
if you don't want an attribute to change during the
lifetime of the object, then don't provide a setter.


To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org

View raw message