类com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator源码实例Demo

下面列出了怎么用com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: components   文件: NsTypeResolverBuilder.java
@Override
protected TypeIdResolver idResolver(MapperConfig<?> config, JavaType baseType,
                                    PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes,
                                    boolean forSer, boolean forDeser) {
    if (_idType == null) {
        throw new IllegalStateException("Can not build, 'init()' not yet called");
    }

    return new NsTypeIdResolver(baseType, config.getTypeFactory(), basicMetaData);
}
 
 类方法
 同包方法