users@jersey.java.net

Re: [Jersey] JaxbContextResolver

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Thu, 20 May 2010 17:21:43 -0700

On Thu, May 20, 2010 at 9:59 AM, Sven Waibel <sven.waibel_at_web.de> wrote:
> Good point!
> But how would it be, if you specify an package name and it scan's the entire package for classes and set's them into the context?

There are packages that do this, using various hacks (JVM does not
provide real proper way to do it, so mostly they just go through
assumed classpath etc).
So you can probably connect such code to do automatic registration. I
don't think JAXB implementations do this, and JAXB API specifically
has no method to request such scanning.

You could try asking JAXB list for this, since this is not really a
Jersey or JAX-RS specific?

-+ Tatu +-