Mark Hansen wrote:
> I'm reviewing the JAXB 2.0 API and specification. I don't see any
> interface for querying a context to determine the type mappings?
As you noticed the JAXBIntrospector API is fairly limited in scope.
There are a lot of things it doesn't give you.
I think the full JAXB-reflection API goes beyond the scope of the JAXB
API. There's no denying that such a feature would be useful for some
applications, but it's not clear if it needs to be standard.
If you are interested in doing JAXB-aware reflection, take a look at
http://jaxb2-reflection.dev.java.net/
You can get all sorts of information, including the type name <-> class
mapping.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com