Package com.fasterxml.jackson.jr.type
Class TypeResolver
java.lang.Object
com.fasterxml.jackson.jr.type.TypeResolver
- All Implemented Interfaces:
Serializable
Object that is used for resolving generic type information of a class
so that it is accessible using simple API. Resolved types are also starting
point for accessing resolved (generics aware) return and argument types
of class members (methods, fields, constructors).
Note that resolver instances are stateful in that resolvers cache resolved types for efficiency. Since this is internal state and not directly visible to callers, access to state is fully synchronized so that access from multiple threads is safe.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectresolve(TypeBindings typeBindings, Type jdkType) Factory method for resolving specified JavaType, givenTypeBindingsneeded to resolve any type variables.
-
Field Details
-
_cache
-
-
Constructor Details
-
TypeResolver
public TypeResolver()
-
-
Method Details
-
readResolve
-
resolve
Factory method for resolving specified JavaType, givenTypeBindingsneeded to resolve any type variables.Use of this method is discouraged (use if and only if you really know what you are doing!); but if used, type bindings passed should come from
ResolvedTypeinstance of declaring class (or interface).
-