Top Description Methods
tools.jackson.databind.introspect

public Interface MixInResolver

extends Snapshottable<MixInResolver>
Known Direct Implementers
tools.jackson.databind.cfg.MapperConfig, tools.jackson.databind.introspect.MixInHandler
Imports
tools.jackson.core.util.Snapshottable

Interface used for decoupling details of how mix-in annotation definitions are accessed (via this interface), and how they are stored (defined by classes that implement the interface)
Since
3.0 (in 2.x was nested type of ClassIntrospector)

Method Summary

Modifier and TypeMethod and Description
public Class<?>
findMixInClassFor(Class<?> cls)

Method that will check if there are "mix-in" classes (with mix-in annotations) for given class

public boolean

Returns:

True, if this resolver MAY have mix-ins to apply; false if not (it is "empty")
hasMixIns
()

Method that may be called for optimization purposes, to see if calls to mix-in resolver may be avoided.

public MixInResolver
snapshot()

Redeclares tools.jackson.core.util.Snapshottable.snapshot.

Method called to create a new, non-shared copy, to be used by different ObjectMapper instance, and one that should not be connected to this instance, if resolver has mutable state.

Inherited from tools.jackson.core.util.Snapshottable:
takeSnapshot

Method Detail

findMixInClassForback to summary
public Class<?> findMixInClassFor(Class<?> cls)

Method that will check if there are "mix-in" classes (with mix-in annotations) for given class

hasMixInsback to summary
public boolean hasMixIns()

Method that may be called for optimization purposes, to see if calls to mix-in resolver may be avoided. Return value of true means that it is possible that a mix-in class will be found; false that no mix-in will ever be found. In latter case caller can avoid calls altogether.

Note that the reason for "empty" resolvers is to use "null object" for simplifying calling code.

Returns:boolean

True, if this resolver MAY have mix-ins to apply; false if not (it is "empty")

snapshotback to summary
public MixInResolver snapshot()

Redeclares tools.jackson.core.util.Snapshottable.snapshot.

Method called to create a new, non-shared copy, to be used by different ObjectMapper instance, and one that should not be connected to this instance, if resolver has mutable state. If resolver is immutable may simply return `this`.

Annotations
@Override