users@jersey.java.net

[Jersey] Re: Client-side Provider scanning?

From: Daniel Manzke <daniel.manzke_at_googlemail.com>
Date: Sun, 3 Apr 2011 11:37:52 +0200

Could be easily done, when you are using Guice and "Automatic Binding for
Guice" (GAB). (https://github.com/manzke/guice-automatic-injection)

It is pretty easy to create a Feature, which scans for @Provider or
something similar. Or you could annotate your Provider with @Bind and
everything is working. (I use the last way, because I create all Provider by
myself. If you need to scan for others, I would help to create such a
Provider-Feature)

Bye,
Daniel

2011/4/3 Gili <cowwoc_at_bbs.darktech.org>

> Hi,
>
> Just wondering: why doesn't jersey-client provide the same mechanism for
> scanning the classpath for Provider classes as opposed to having to
> reference them one by one?
>
> Should I file a RFE?
>
> Thanks,
> Gili
>
> --
> View this message in context:
> http://jersey.576304.n2.nabble.com/Client-side-Provider-scanning-tp6234650p6234650.html
> Sent from the Jersey mailing list archive at Nabble.com.
>



-- 
Viele Grüße/Best Regards
Daniel Manzke