Class JsonAnnotationManager
java.lang.Object
jodd.json.meta.JsonAnnotationManager
Cached includes and excludes annotation data per type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JsonAnnotationManagerprivate Class<? extends Annotation> private booleanprivate final jodd.util.TypeCache<TypeData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeData_lookupTypeData(Class type) Lookups type data and creates one if missing.protected TypeDatafindSubclassTypeData(Class type) Finds type data of first annotated superclass or interface.static JsonAnnotationManagerget()Returns instance of this class.lookupTypeData(Class type) Returns all includes for given type.voidreset()resolveJsonName(Class type, String name) Returns different name of a property if set by annotation.resolveRealName(Class type, String jsonName) Returns real property name for given JSON property.private TypeDatascanClassForAnnotations(Class type) Scans class for annotations and returnsTypeData.setJsonAnnotation(Class<? extends Annotation> jsonAnnotation) Sets different annotation.setSerializationSubclassAware(boolean serializationSubclassAware) When set searches for first annotated class or interface and use it's data.
-
Field Details
-
JSON_ANNOTATION_MANAGER
-
typeDataMap
-
serializationSubclassAware
private boolean serializationSubclassAware -
jsonAnnotation
-
-
Constructor Details
-
JsonAnnotationManager
public JsonAnnotationManager()
-
-
Method Details
-
get
Returns instance of this class. -
lookupTypeData
-
_lookupTypeData
-
findSubclassTypeData
-
resolveJsonName
-
resolveRealName
-
scanClassForAnnotations
-
setSerializationSubclassAware
When set searches for first annotated class or interface and use it's data. -
setJsonAnnotation
Sets different annotation. -
reset
public void reset()
-