hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: CachingHttpClientBuilder.decorateMainExec caches resourceFactory etc rather than directly accessing them
Date Mon, 24 Feb 2014 19:41:17 GMT
On Mon, Feb 24, 2014 at 12:55 PM, Oleg Kalnichevski
<oleg@ok2consulting.com>wrote:

> On February 24, 2014 6:15:26 PM CET, sebb <sebbaz@gmail.com> wrote:
> >Why does the method copy resourceFactory rather than using it directly?
> >
> >Seems unnecessary.
>
>
> This is done to ensure that the same builder could be used to create
> multiple objects without polluting its internal state.
>

Javadoc! :)

Gary


>
> Oleg
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message