ClassIntrospector.MixInResolver
that just uses a java.util.Map for containing mapping
from target to mix-in classes.
Implementation is only thread-safe after initialization (that is, when underlying Map is not modified but only read).
| Modifier and Type | Field and Description |
|---|---|
| protected Map | _localMixIns
Simple mix-in targets defined locally. |
| protected final ClassIntrospector. | _overrides
External resolver that gets called before looking at any locally defined mix-in target classes. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public SimpleMixInResolver | copy()
Implements com. ObjectMapper instance, and one that should not be connected
to this instance, if resolver has mutable state.
|
| public Class | findMixInClassFor(Class<?> cls)
Implements com. |
| public boolean | Returns: True, if this resolver MAY have mix-ins to apply; false if not (it is "empty")Method that may be called for optimization purposes, to see if calls to mix-in resolver may be avoided. |
| public int | |
| public void | |
| public SimpleMixInResolver | withoutLocalDefinitions()
Mutant factory method that constructs a new instance that has no locally defined mix-in/target mappings. |
| public SimpleMixInResolver | withOverrides(ClassIntrospector.
Mutant factory for constructor a new resolver instance with given mix-in resolver override. |
| _localMixIns | back to summary |
|---|---|
| protected Map<ClassKey, Class<?>> _localMixIns Simple mix-in targets defined locally. | |
| _overrides | back to summary |
|---|---|
| protected final ClassIntrospector. External resolver that gets called before looking at any locally defined mix-in target classes. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SimpleMixInResolver | back to summary |
|---|---|
| public SimpleMixInResolver(ClassIntrospector. | |
| SimpleMixInResolver | back to summary |
|---|---|
| protected SimpleMixInResolver(ClassIntrospector. | |
| addLocalDefinition | back to summary |
|---|---|
| public void addLocalDefinition(Class<?> target, Class<?> mixinSource) | |
| copy | back to summary |
|---|---|
| public SimpleMixInResolver copy() Implements com. Doc from com. Method called to create a new, non-shared copy, to be used by different
| |
| findMixInClassFor | back to summary |
|---|---|
| public Class Implements com. Doc from com. Method that will check if there are "mix-in" classes (with mix-in annotations) for given class
| |
| hasMixIns | back 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 Note that the reason for "empty" resolvers is to use "null object" for simplifying code.
| |
| localSize | back to summary |
|---|---|
| public int localSize() | |
| setLocalDefinitions | back to summary |
|---|---|
| public void setLocalDefinitions(Map<Class<?>, Class<?>> sourceMixins) | |
| withoutLocalDefinitions | back to summary |
|---|---|
| public SimpleMixInResolver withoutLocalDefinitions() Mutant factory method that constructs a new instance that has no locally defined mix-in/target mappings. | |
| withOverrides | back to summary |
|---|---|
| public SimpleMixInResolver withOverrides(ClassIntrospector. Mutant factory for constructor a new resolver instance with given mix-in resolver override. | |