jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Updated Client API and Interceptors/Filters proposal is available - please review

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Mon, 13 Jun 2011 15:15:46 +0200

On 06/13/2011 02:46 PM, Markus KARG wrote:
> For the topic of factories itself I share Bill's opinion that whenever possible we should use interfaces and do not provide implementations. As much as possible of the implementation should be in the sole hands of the vendors and not already pre-programmed by the spec. If using a ClientFactory is the solution, then we should provide one. It's just the cleaner approach.

Can you please provide an example of constructing a client instance with the client factory you propose? Does your
client factory have static methods? If yes, it must be at least an abstract class then, which means we are just moving
the problem one level of indirection further. If no, how do you plan to get the client factory instance just using the
JAX-RS API?

Thanks,
Marek