Class OptionalHandlerFactory
java.lang.Object
tools.jackson.databind.ext.OptionalHandlerFactory
Helper class used for isolating details of handling optional+external types
(javax.xml classes) from standard factories that offer them.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class<?> private static final Class<?> static final OptionalHandlerFactoryprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanfindDeserializer(DeserializationConfig config, JavaType type) findSerializer(SerializationConfig config, JavaType type) booleanhasDeserializerFor(Class<?> valueType) private booleanhasSuperClassStartingWith(Class<?> rawType, String prefix) Since 2.7 we only need to check for class extension, as all implemented types are classes, not interfaces.
-
Field Details
-
PACKAGE_PREFIX_JAVAX_XML
- See Also:
-
CLASS_DOM_NODE
-
CLASS_DOM_DOCUMENT
-
instance
-
-
Constructor Details
-
OptionalHandlerFactory
protected OptionalHandlerFactory()
-
-
Method Details
-
findSerializer
-
findDeserializer
-
hasDeserializerFor
-
_IsXOfY
-
hasSuperClassStartingWith
Since 2.7 we only need to check for class extension, as all implemented types are classes, not interfaces. This has performance implications for some cases, as we do not need to go over interfaces implemented, just super classes
-