Oleg Kalnichevski wrote:
Odi,
(1) The DI pattern does not imply the use of a container. So, I am not
sure why you find it complex.
Ah okay, that was my concern. If it is done without a container like the examples you mentioned below, it's good for me.
HttpClient 3.0 already makes use of both patterns: HttpClient/HttpConnectionManager, HttpClient/HttpMethodRetryHandler represent a perfect example of the DI pattern, whereas CookiePolicy/CookieSpec, AuthPolicy/AuthScheme implement the classic SL pattern. We ought to consistently apply the same approach to other cases where users may want to provide a custom impl of a particular HTTP primitive (MyHttpClientConnection, MyCookie, etc)
Oleg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
