Is there a way to disable an @XmlJavaTypeAdapter field annotation via a 
Mixin?

The only solution I found was writing my own noop adapter to override the 
one defined on the source class, and annotate the Mixin with 
@XmlJavaTypeAdapter(NoopXmlAdapter.class).

Adapter code:

public class NoopXmlAdapter extends XmlAdapter<Object, Object > {
    public Object unmarshal(Object value) {
        return value;
    }

    public Object marshal(Object value) {
        return value;
    }

    public NoopXmlAdapter() {}
}


-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to