users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: can you _at_Context inject Configurable or Configuration?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 19 Feb 2013 14:48:46 +0100

On Feb 19, 2013, at 2:39 PM, Bill Burke <bburke_at_redhat.com> wrote:

> I'm writing a sub-chapter on component registration and came across a problem. Is there any way of leveraging scanning so we can build a Client from scanned components? Would this work server side?
>
> @Context Configurable configurable;

Should the above be Configuration? Configuration can be injected into server side components (providers/resources).

>
> {
> Client client = ClientBuilder.newClient(configurable);
> }
>
> Another option is to allow injection of a ClientBuilder:
>
> @Context ClientBuilder builder;

I was hoping we have closed the client component injection topic with removal of @Uri for the time being.

Marek

>
>
>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com