public class FallbackableTypeFactory
extends com.fasterxml.jackson.databind.type.TypeFactory
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
fallbackClassLoader |
protected static FallbackableTypeFactory |
instance |
| Modifier | Constructor and Description |
|---|---|
protected |
FallbackableTypeFactory(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> typeCache) |
protected |
FallbackableTypeFactory(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> typeCache,
com.fasterxml.jackson.databind.type.TypeParser p,
com.fasterxml.jackson.databind.type.TypeModifier[] mods,
ClassLoader classLoader) |
protected |
FallbackableTypeFactory(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> typeCache,
com.fasterxml.jackson.databind.type.TypeParser p,
com.fasterxml.jackson.databind.type.TypeModifier[] mods,
ClassLoader classLoader,
ClassLoader fallbackClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
static FallbackableTypeFactory |
defaultInstance() |
Class<?> |
findClass(String className)
If TypeFactory.findClass() cannot find a Class, try with fallback classloader.
|
ClassLoader |
getFallbackClassLoader() |
FallbackableTypeFactory |
withCache(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> cache)
Mutant factory method that will construct new
TypeFactory with
identical settings except for different cache; most likely one with
bigger maximum size. |
FallbackableTypeFactory |
withClassLoader(ClassLoader classLoader)
"Mutant factory" method which will construct a new instance with specified
ClassLoader to use by findClass(java.lang.String). |
FallbackableTypeFactory |
withFallbackClassLoader(ClassLoader fallbackClassLoader)
"Mutant factory" method which will construct a new instance with specified fallback
ClassLoader to use by findClass(java.lang.String) only when main classloader or thread context classloader can not resolve. |
FallbackableTypeFactory |
withModifier(com.fasterxml.jackson.databind.type.TypeModifier mod)
"Mutant factory" method which will construct a new instance with specified
TypeModifier added as the first modifier to call (in case there
are multiple registered). |
_constructSimple, _findPrimitive, _findWellKnownSimple, _fromAny, _fromArrayType, _fromClass, _fromParamType, _fromVariable, _fromWellKnownClass, _fromWellKnownInterface, _fromWildcard, _newSimpleType, _resolveSuperClass, _resolveSuperInterfaces, _unknownType, classForName, classForName, clearCache, constructArrayType, constructArrayType, constructCollectionLikeType, constructCollectionLikeType, constructCollectionType, constructCollectionType, constructFromCanonical, constructGeneralizedType, constructMapLikeType, constructMapLikeType, constructMapType, constructMapType, constructParametricType, constructParametricType, constructParametrizedType, constructParametrizedType, constructRawCollectionLikeType, constructRawCollectionType, constructRawMapLikeType, constructRawMapType, constructReferenceType, constructSimpleType, constructSimpleType, constructSpecializedType, constructType, constructType, constructType, constructType, constructType, findTypeParameters, findTypeParameters, findTypeParameters, getClassLoader, moreSpecificType, rawClass, uncheckedSimpleType, unknownTypeprotected final transient ClassLoader fallbackClassLoader
protected static final FallbackableTypeFactory instance
protected FallbackableTypeFactory(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> typeCache)
protected FallbackableTypeFactory(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> typeCache, com.fasterxml.jackson.databind.type.TypeParser p, com.fasterxml.jackson.databind.type.TypeModifier[] mods, ClassLoader classLoader)
protected FallbackableTypeFactory(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> typeCache, com.fasterxml.jackson.databind.type.TypeParser p, com.fasterxml.jackson.databind.type.TypeModifier[] mods, ClassLoader classLoader, ClassLoader fallbackClassLoader)
public FallbackableTypeFactory withFallbackClassLoader(ClassLoader fallbackClassLoader)
ClassLoader to use by findClass(java.lang.String) only when main classloader or thread context classloader can not resolve.public FallbackableTypeFactory withModifier(com.fasterxml.jackson.databind.type.TypeModifier mod)
TypeModifier added as the first modifier to call (in case there
are multiple registered).withModifier in class com.fasterxml.jackson.databind.type.TypeFactorypublic FallbackableTypeFactory withClassLoader(ClassLoader classLoader)
ClassLoader to use by findClass(java.lang.String).withClassLoader in class com.fasterxml.jackson.databind.type.TypeFactorypublic FallbackableTypeFactory withCache(com.fasterxml.jackson.databind.util.LRUMap<Object,com.fasterxml.jackson.databind.JavaType> cache)
TypeFactory with
identical settings except for different cache; most likely one with
bigger maximum size.withCache in class com.fasterxml.jackson.databind.type.TypeFactorypublic static FallbackableTypeFactory defaultInstance()
public ClassLoader getFallbackClassLoader()
public Class<?> findClass(String className) throws ClassNotFoundException
findClass in class com.fasterxml.jackson.databind.type.TypeFactoryClassNotFoundExceptionCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.