
com.fasterxml.jackson.module.afterburner.deser.OptimizedValueInstantiator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-afterburner Show documentation
Show all versions of jackson-module-afterburner Show documentation
Experimental extension to Jackson (http://jackson.codehaus.org)
used to enhance access functionality using bytecode generation.
The newest version!
package com.fasterxml.jackson.module.afterburner.deser;
import org.codehaus.jackson.map.deser.std.StdValueInstantiator;
/**
* Base class for concrete bytecode-generated value instantiators.
*/
public abstract class OptimizedValueInstantiator
extends StdValueInstantiator
{
/**
* Default constructor which is only used when creating
* dummy instance to call factory method.
*/
protected OptimizedValueInstantiator() {
super(/*DeserializationConfig*/null, (Class>)String.class);
}
/**
* Copy-constructor to use for creating actual optimized instances.
*/
protected OptimizedValueInstantiator(StdValueInstantiator src) {
super(src);
}
/**
* Need to override this, now that we have installed default creator.
*/
@Override
public boolean canCreateUsingDefault() {
return true;
}
protected abstract OptimizedValueInstantiator with(StdValueInstantiator src);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy