public class CustomClassLoaderConstructor extends Constructor
Constructor.ConstructMapping, Constructor.ConstructScalar, Constructor.ConstructSequence, Constructor.ConstructYamlObject
SafeConstructor.ConstructUndefined, SafeConstructor.ConstructYamlBinary, SafeConstructor.ConstructYamlBool, SafeConstructor.ConstructYamlFloat, SafeConstructor.ConstructYamlInt, SafeConstructor.ConstructYamlMap, SafeConstructor.ConstructYamlNull, SafeConstructor.ConstructYamlOmap, SafeConstructor.ConstructYamlPairs, SafeConstructor.ConstructYamlSeq, SafeConstructor.ConstructYamlSet, SafeConstructor.ConstructYamlStr, SafeConstructor.ConstructYamlTimestamp
undefinedConstructor
composer, loadingConfig, NOT_INSTANTIATED_OBJECT, rootTag, typeDefinitions, typeTags, yamlClassConstructors, yamlConstructors, yamlMultiConstructors
Constructor and Description |
---|
CustomClassLoaderConstructor(Class<? extends Object> theRoot,
ClassLoader theLoader)
Create
|
CustomClassLoaderConstructor(ClassLoader cLoader)
Create
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getClassForName(String name)
Load the class
|
getClassForNode
constructMapping2ndStep, constructSet2ndStep, createLongOrBigInteger, flattenMapping, flattenMapping, processDuplicateKeys, processDuplicateKeys
addTypeDescription, checkData, constructArray, constructArrayStep2, constructDocument, constructMapping, constructObject, constructObjectNoCheck, constructScalar, constructSequence, constructSequenceStep2, constructSet, constructSet, createArray, createDefaultList, createDefaultMap, createDefaultSet, finalizeConstruction, getConstructor, getData, getPropertyUtils, getSingleData, isAllowDuplicateKeys, isEnumCaseSensitive, isExplicitPropertyUtils, isWrappedToRootException, newInstance, newInstance, newInstance, newList, newMap, newSet, postponeMapFilling, postponeSetFilling, setAllowDuplicateKeys, setComposer, setEnumCaseSensitive, setPropertyUtils, setWrappedToRootException
public CustomClassLoaderConstructor(ClassLoader cLoader)
cLoader
- the class loader to find the class definitionpublic CustomClassLoaderConstructor(Class<? extends Object> theRoot, ClassLoader theLoader)
theRoot
- - the class to instantiatetheLoader
- - the class loader to find the class definitionprotected Class<?> getClassForName(String name) throws ClassNotFoundException
getClassForName
in class Constructor
name
- - the nameClassNotFoundException
- - when cannot load the classCopyright © 2008–2022. All rights reserved.