com.fasterxml.jackson.databind.util.ClassUtil#isJacksonStdImpl ( )源码实例Demo

下面列出了com.fasterxml.jackson.databind.util.ClassUtil#isJacksonStdImpl ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: lams   文件: StdDeserializer.java
protected boolean isDefaultKeyDeserializer(KeyDeserializer keyDeser) {
    return ClassUtil.isJacksonStdImpl(keyDeser);
}
 
源代码2 项目: lams   文件: UntypedObjectDeserializer.java
protected JsonDeserializer<Object> _clearIfStdImpl(JsonDeserializer<Object> deser) {
    return ClassUtil.isJacksonStdImpl(deser) ? null : deser;
}
 
/**
 * Helper method used to check whether given serializer is the default
 * serializer implementation: this is necessary to avoid overriding other
 * kinds of serializers.
 */
protected boolean isDefaultSerializer(SerializationConfig config,
        JsonSerializer<?> ser)
{
    return ClassUtil.isJacksonStdImpl(ser);
}
 
/**
 * Helper method used to check whether given deserializer is the default
 * deserializer implementation: this is necessary to avoid overriding other
 * kinds of deserializers.
 */
protected boolean isDefaultDeserializer(JsonDeserializer<?> deser) {
    return ClassUtil.isJacksonStdImpl(deser)
            // 07-May-2018, tatu: Probably can't happen but just in case
            || (deser instanceof SuperSonicBeanDeserializer);
}
 
/**
 * Helper method used to check whether given deserializer is the default
 * deserializer implementation: this is necessary to avoid overriding custom
 * deserializers.
 */
protected boolean _isDefaultDeserializer(JsonDeserializer<?> deser) {
    return (deser == null)
            || (deser instanceof SuperSonicBeanDeserializer)
            || ClassUtil.isJacksonStdImpl(deser);
}
 
源代码6 项目: lams   文件: StdSerializer.java
/**
 * Method that can be called to determine if given serializer is the default
 * serializer Jackson uses; as opposed to a custom serializer installed by
 * a module or calling application. Determination is done using
 * {@link JacksonStdImpl} annotation on serializer class.
 */
protected boolean isDefaultSerializer(JsonSerializer<?> serializer) {
    return ClassUtil.isJacksonStdImpl(serializer);
}
 
源代码7 项目: lams   文件: StdDeserializer.java
/**
 * Method that can be called to determine if given deserializer is the default
 * deserializer Jackson uses; as opposed to a custom deserializer installed by
 * a module or calling application. Determination is done using
 * {@link JacksonStdImpl} annotation on deserializer class.
 */
protected boolean isDefaultDeserializer(JsonDeserializer<?> deserializer) {
    return ClassUtil.isJacksonStdImpl(deserializer);
}
 
/**
 * Helper method used to check whether given serializer is the default
 * serializer implementation: this is necessary to avoid overriding other
 * kinds of deserializers.
 */
protected boolean isDefaultSerializer(JsonSerializer<?> ser)
{
    return (ser == null) || ClassUtil.isJacksonStdImpl(ser);
}