public class StdSubtypeResolver extends SubtypeResolver
限定符和类型 | 字段和说明 |
---|---|
protected LinkedHashSet<NamedType> |
_registeredSubtypes |
构造器和说明 |
---|
StdSubtypeResolver() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
_collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class)
|
Collection<NamedType> |
collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for given type.
|
Collection<NamedType> |
collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for a property specified
by given element (method or field)
|
void |
registerSubtypes(Class<?>... classes) |
void |
registerSubtypes(NamedType... types)
Method for registering specified subtypes (possibly including type
names); for type entries without name, non-qualified class name
as used as name (unless overridden by annotation).
|
protected LinkedHashSet<NamedType> _registeredSubtypes
public void registerSubtypes(NamedType... types)
SubtypeResolver
registerSubtypes
在类中 SubtypeResolver
public void registerSubtypes(Class<?>... classes)
registerSubtypes
在类中 SubtypeResolver
public Collection<NamedType> collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai)
SubtypeResolver
collectAndResolveSubtypes
在类中 SubtypeResolver
property
- Base member to use for type resolution: either annotated type (class),
or property (field, getter/setter)public Collection<NamedType> collectAndResolveSubtypes(AnnotatedClass type, MapperConfig<?> config, AnnotationIntrospector ai)
SubtypeResolver
collectAndResolveSubtypes
在类中 SubtypeResolver
protected void _collectAndResolve(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, AnnotationIntrospector ai, HashMap<NamedType,NamedType> collectedSubtypes)