Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.databind.deser.impl;
 
 
Simple deserializer that will call configured type deserializer, passing in configured data deserializer, and exposing it all as a simple deserializer. This is necessary when there is no "parent" deserializer which could handle details of calling a com.fasterxml.jackson.databind.jsontype.TypeDeserializer, most commonly used with root values.
public final class TypeWrappedDeserializer
    extends JsonDeserializer<Object>
    {
        super();
         = typeDeser;
         = deser;
    }
    @Override
            throws IOExceptionJsonProcessingException
    {
        return .deserializeWithType(jpctxt);
    }
    @Override
        TypeDeserializer typeDeserializer)
            throws IOExceptionJsonProcessingException
    {
        // should never happen? (if it can, could call on that object)
        throw new IllegalStateException("Type-wrapped deserializer's deserializeWithType should never get called");
    }
    @Override
            Object intoValue)
        throws IOExceptionJsonProcessingException
    {
        /* 01-Mar-2013, tatu: Hmmh. Tough call as to what to do... need
         *   to delegate, but will this work reliably? Let's just hope so:
         */
        return .deserialize(jp,  ctxtintoValue);
    }
New to GrepCode? Check out our FAQ X