Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.databind.deser.impl;
 
 
 
Class that encapsulates details of value injection that occurs before deserialization of a POJO. Details include information needed to find injectable value (logical id) as well as method used for assigning value (setter or field)
public class ValueInjector
    extends BeanProperty.Std
{
    
Identifier used for looking up value to inject
    protected final Object _valueId;
    public ValueInjector(String propertyNameJavaType type,
            Annotations contextAnnotationsAnnotatedMember mutator,
            Object valueId)
    {
        super(propertyNametypecontextAnnotationsmutator);
         = valueId;
    }
    public Object findValue(DeserializationContext contextObject beanInstance)
    {
        return context.findInjectableValue(thisbeanInstance);
    }
    
    public void inject(DeserializationContext contextObject beanInstance)
        throws IOException
    {
        .setValue(beanInstancefindValue(contextbeanInstance));
    }
New to GrepCode? Check out our FAQ X