JAXB: Isn't it possible to use an XmlAdapter without @XmlJavaTypeAdapter?

Viewed 14792

Can't I register a bunch of XmlAdapters to Marshaller|Unmarshaller so that I wouldn't need to specify @XmlJavaTypeAdapter on each filed, whose type isn't natively JAXB-supported?

I find it somewhat redundant.

BTW, someMarshaller.setAdapter(...) seem not to do anything.

2 Answers
Related