On Jan 14, 2013, at 9:52 PM, Arun Gupta <Arun.p.Gupta_at_oracle.COM> wrote:
> 1). Client instances are configured using WebTarget.register methods.
>
> How would ClientFactory.newClient(Configuration) be invoked ?
>
> I'm missing any means to create the Configuration object. Or is it Configuration from a different Client ?
Yes. From ANY other configurable client component (Client, WebTarget, ...).
> 2). Section 5.1 of PR shows
>
> client.configuration().register(...)
>
> The PR (obtained from http://download.oracle.com/otndocs/jcp/jaxrs-2_0-pr_update-spec/index.html) and the latest javadoc shows
>
> client.register(...)
>
> Seems like there is a inconsistency in the javadoc and specs. BTW, I like the newer pattern as it removes an additional API call.
Can you file a bug against spec text?
Thanks,
Marek
>
> Thanks,
> Arun
>
> --
> http://twitter.com/arungupta
> http://blogs.oracle.com/arungupta
>