Example usage for com.fasterxml.jackson.databind.introspect BasicBeanDescription forOtherUse

List of usage examples for com.fasterxml.jackson.databind.introspect BasicBeanDescription forOtherUse

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.introspect BasicBeanDescription forOtherUse.

Prototype

public static BasicBeanDescription forOtherUse(MapperConfig<?> paramMapperConfig, JavaType paramJavaType,
              AnnotatedClass paramAnnotatedClass) 

Source Link

Usage

From source file:com.github.mrenou.jacksonatic.internal.introspection.JacksonaticClassIntrospector.java

@Override
public BasicBeanDescription forClassAnnotations(MapperConfig<?> cfg, JavaType type, MixInResolver r) {
    BasicBeanDescription desc = _findStdTypeDesc(type);
    if (desc == null) {
        desc = _cachedFCA.get(type);/*w ww .j  ava  2  s .  co  m*/
        if (desc == null) {
            boolean useAnnotations = cfg.isAnnotationProcessingEnabled();
            AnnotatedClass ac = annotatedClassConstructor.constructForSerialization(type.getRawClass(),
                    (useAnnotations ? cfg.getAnnotationIntrospector() : null), r);
            desc = BasicBeanDescription.forOtherUse(cfg, type, ac);
            _cachedFCA.put(type, desc);
        }
    }
    return desc;
}

From source file:com.github.mrenou.jacksonatic.internal.introspection.JacksonaticClassIntrospector.java

@Override
public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> cfg, JavaType type, MixInResolver r) {
    BasicBeanDescription desc = _findStdTypeDesc(type);
    if (desc == null) {
        boolean useAnnotations = cfg.isAnnotationProcessingEnabled();
        AnnotationIntrospector ai = cfg.getAnnotationIntrospector();
        AnnotatedClass ac = annotatedClassConstructor.constructWithoutSuperTypes(type.getRawClass(),
                (useAnnotations ? ai : null), r);
        desc = BasicBeanDescription.forOtherUse(cfg, type, ac);
    }//from ww  w  .  ja va2s  . com
    return desc;
}