Java Code Examples for com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder#Value

The following examples show how to use com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder#Value . 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: BasicClassIntrospector.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
protected POJOPropertiesCollector collectPropertiesWithBuilder(MapperConfig<?> config,
        JavaType type, MixInResolver r, boolean forSerialization)
{
    AnnotatedClass ac = _resolveAnnotatedClass(config, type, r);
    AnnotationIntrospector ai = config.isAnnotationProcessingEnabled() ? config.getAnnotationIntrospector() : null;
    JsonPOJOBuilder.Value builderConfig = (ai == null) ? null : ai.findPOJOBuilderConfig(ac);
    String mutatorPrefix = (builderConfig == null) ? JsonPOJOBuilder.DEFAULT_WITH_PREFIX : builderConfig.withPrefix;
    return constructPropertyCollector(config, ac, type, forSerialization, mutatorPrefix);
}
 
Example 2
Source File: BasicBeanDescription.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public JsonPOJOBuilder.Value findPOJOBuilderConfig()
{
    return (_annotationIntrospector == null) ?
            null : _annotationIntrospector.findPOJOBuilderConfig(_classInfo);
}
 
Example 3
Source File: AnnotationIntrospectorPair.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public JsonPOJOBuilder.Value findPOJOBuilderConfig(AnnotatedClass ac) {
    JsonPOJOBuilder.Value result = _primary.findPOJOBuilderConfig(ac);
    return (result == null) ? _secondary.findPOJOBuilderConfig(ac) : result;
}
 
Example 4
Source File: BeanDeserializerBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public void setPOJOBuilder(AnnotatedMethod buildMethod, JsonPOJOBuilder.Value config) {
    _buildMethod = buildMethod;
    _builderConfig = config;
}
 
Example 5
Source File: BeanDeserializerBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public JsonPOJOBuilder.Value getBuilderConfig() {
    return _builderConfig;
}
 
Example 6
Source File: AnnotationIntrospector.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @since 2.0
 */
public JsonPOJOBuilder.Value findPOJOBuilderConfig(AnnotatedClass ac) {
    return null;
}
 
Example 7
Source File: BeanDescription.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Method for finding configuration for POJO Builder class.
 */
public abstract JsonPOJOBuilder.Value findPOJOBuilderConfig();