Class AnnotationIntrospectorPair

  • All Implemented Interfaces:
    Versioned, Serializable

    public class AnnotationIntrospectorPair
    extends AnnotationIntrospector
    implements Serializable
    Helper class that allows using 2 introspectors such that one introspector acts as the primary one to use; and second one as a fallback used if the primary does not provide conclusive or useful result for a method.

    An obvious consequence of priority is that it is easy to construct longer chains of introspectors by linking multiple pairs. Currently most likely combination is that of using the default Jackson provider, along with JAXB annotation introspector.

    Note: up until 2.0, this class was an inner class of AnnotationIntrospector; moved here for convenience.

    Since:
    2.1
    See Also:
    Serialized Form