users@jax-rs-spec.java.net

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

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 19 Feb 2013 08:39:14 -0500

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;

{
    Client client = ClientBuilder.newClient(configurable);
}

Another option is to allow injection of a ClientBuilder:

@Context ClientBuilder builder;




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