Search in sources :

Example 11 with HandlerInstantiator

use of com.fasterxml.jackson.databind.cfg.HandlerInstantiator in project jackson-databind by FasterXML.

the class DefaultSerializerProvider method includeFilterInstance.

@Override
public Object includeFilterInstance(BeanPropertyDefinition forProperty, Class<?> filterClass) {
    if (filterClass == null) {
        return null;
    }
    HandlerInstantiator hi = _config.getHandlerInstantiator();
    Object filter = (hi == null) ? null : hi.includeFilterInstance(_config, forProperty, filterClass);
    if (filter == null) {
        filter = ClassUtil.createInstance(filterClass, _config.canOverrideAccessModifiers());
    }
    return filter;
}
Also used : HandlerInstantiator(com.fasterxml.jackson.databind.cfg.HandlerInstantiator)

Aggregations

HandlerInstantiator (com.fasterxml.jackson.databind.cfg.HandlerInstantiator)11 Converter (com.fasterxml.jackson.databind.util.Converter)2 VirtualBeanPropertyWriter (com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriter)1