public class OptionalHandlerFactory extends Object implements Serializable
Note that 2.7 changed handling to slightly less dynamic, to avoid having to traverse class hierarchy, which turned to be a performance issue in certain cases. Since DOM classes are assumed to exist on all Java 1.6 environments (yes, even on Android/GAE), this part could be simplified by slightly less dynamic lookups.
Also with 2.7 we are supporting JDK 1.7/Java 7 type(s).
Modifier and Type | Field and Description |
---|---|
static OptionalHandlerFactory |
instance |
Modifier | Constructor and Description |
---|---|
protected |
OptionalHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
JsonDeserializer<?> |
findDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
JsonSerializer<?> |
findSerializer(SerializationConfig config,
JavaType type,
BeanDescription beanDesc) |
public static final OptionalHandlerFactory instance
public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc)
public JsonDeserializer<?> findDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc) throws JsonMappingException
JsonMappingException
Copyright © 2008–2018 FasterXML. All rights reserved.