Example usage for com.fasterxml.jackson.databind BeanDescription getType

List of usage examples for com.fasterxml.jackson.databind BeanDescription getType


In this page you can find the example usage for com.fasterxml.jackson.databind BeanDescription getType.


public JavaType getType() 

Source Link


From source file:org.bonitasoft.engine.business.data.impl.jackson.EntityBeanSerializerModifier.java

private static boolean shouldBeIgnored(BeanDescription beanDescription) {
    JavaType type = beanDescription.getType();
    Class<?> rawClass = type.getRawClass();
    if (LOG.isTraceEnabled()) {
        LOG.trace("Checking if it has to be ignored - {} / {}", type, rawClass);
        LOG.trace("Interfaces: {}", getNames(ClassUtils.getAllInterfaces(rawClass)));
        LOG.trace("Superclasses: {}", getNames(ClassUtils.getAllSuperclasses(rawClass)));
    }//from   ww  w. jav a2s . co m
    if (MethodHandler.class.isAssignableFrom(rawClass) || Proxy.class.isAssignableFrom(rawClass)) {
        return true;
    return false;