Java Code Examples for com.fasterxml.jackson.databind.jsontype.TypeDeserializer#deserializeTypedFromArray()

The following examples show how to use com.fasterxml.jackson.databind.jsontype.TypeDeserializer#deserializeTypedFromArray() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ObjectArrayDeserializer.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Object[] deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer)
    throws IOException
{
    // Should there be separate handling for base64 stuff?
    // for now this should be enough:
    return (Object[]) typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 2
Source File: EnumSetDeserializer.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer)
    throws IOException, JsonProcessingException
{
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 3
Source File: CollectionDeserializer.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer)
    throws IOException
{
    // In future could check current token... for now this should be enough:
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 4
Source File: PrimitiveArrayDeserializers.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer) throws IOException
{
    // Should there be separate handling for base64 stuff?
    // for now this should be enough:
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 5
Source File: CustomCollectionDeserializer.java    From caravan with Apache License 2.0 5 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
    TypeDeserializer typeDeserializer)
    throws IOException {
  // In future could check current token... for now this should be enough:
  return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 6
Source File: GuavaCollectionDeserializer.java    From jackson-datatypes-collections with Apache License 2.0 5 votes vote down vote up
/**
 * Base implementation that does not assume specific type
 * inclusion mechanism. Sub-classes are expected to override
 * this method if they are to handle type information.
 */
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer)
    throws IOException
{
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 7
Source File: PCollectionsCollectionDeserializer.java    From jackson-datatypes-collections with Apache License 2.0 5 votes vote down vote up
/**
 * Base implementation that does not assume specific type
 * inclusion mechanism. Sub-classes are expected to override
 * this method if they are to handle type information.
 */
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer)
        throws IOException
{
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 8
Source File: ContainerDeserializerBase.java    From jackson-datatypes-collections with Apache License 2.0 5 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer)
    throws IOException
{
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 9
Source File: StringCollectionDeserializer.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt,
        TypeDeserializer typeDeserializer) throws IOException {
    // In future could check current token... for now this should be enough:
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 10
Source File: ArrayBlockingQueueDeserializer.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException {
    // In future could check current token... for now this should be enough:
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 11
Source File: StringArrayDeserializer.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException {
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 12
Source File: BaseCollectionDeserializer.java    From jackson-datatypes-collections with Apache License 2.0 4 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer)
        throws IOException {
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}
 
Example 13
Source File: BaseCollectionDeserializer.java    From jackson-datatypes-collections with Apache License 2.0 4 votes vote down vote up
@Override
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer)
        throws IOException {
    return typeDeserializer.deserializeTypedFromArray(p, ctxt);
}