Package org.jgrapes.webconsole.base
Class JsonRpc.Deserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<JsonRpc>
org.jgrapes.webconsole.base.JsonRpc.Deserializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer
,com.fasterxml.jackson.databind.deser.NullValueProvider
- Enclosing class:
JsonRpc
public static class JsonRpc.Deserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<JsonRpc>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
A Deserializer for a
JsonRpc
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
-
Constructor Summary
ConstructorDescriptionCreates a new instance for callingcreateContextual(DeserializationContext, BeanProperty)
, which is the real deserializer.Deserializer
(com.fasterxml.jackson.databind.JavaType type) Instantiates a new deserializer for the given type. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonDeserializer
<?> createContextual
(com.fasterxml.jackson.databind.DeserializationContext deserializationContext, com.fasterxml.jackson.databind.BeanProperty beanProperty) Creates the contextual.deserialize
(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctx) Deserialize.Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
Deserializer
public Deserializer()Creates a new instance for callingcreateContextual(DeserializationContext, BeanProperty)
, which is the real deserializer. -
Deserializer
Instantiates a new deserializer for the given type.- Parameters:
type
- the type
-
-
Method Details
-
createContextual
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext deserializationContext, com.fasterxml.jackson.databind.BeanProperty beanProperty) throws com.fasterxml.jackson.databind.JsonMappingException Creates the contextual.- Specified by:
createContextual
in interfacecom.fasterxml.jackson.databind.deser.ContextualDeserializer
- Parameters:
deserializationContext
- the deserialization contextbeanProperty
- the bean property- Returns:
- the json deserializer
- Throws:
com.fasterxml.jackson.databind.JsonMappingException
- the json mapping exception
-
deserialize
public JsonRpc deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctx) throws IOException Deserialize.- Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<JsonRpc>
- Parameters:
parser
- the parserctx
- the ctx- Returns:
- the json rpc
- Throws:
IOException
- Signals that an I/O exception has occurred.
-