本文整理汇总了Java中com.fasterxml.jackson.databind.deser.BeanDeserializer类的典型用法代码示例。如果您正苦于以下问题:Java BeanDeserializer类的具体用法?Java BeanDeserializer怎么用?Java BeanDeserializer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BeanDeserializer类属于com.fasterxml.jackson.databind.deser包,在下文中一共展示了BeanDeserializer类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EntityDeserializer
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
public EntityDeserializer(
Class<? extends AbstractEntity> entityClass,
BeanDeserializer defaultDeserializer,
Dao generalDao) {
super(defaultDeserializer);
this.entityClass = entityClass;
this.defaultDeserializer = defaultDeserializer;
this.generalDao = generalDao;
}
示例2: modifyDeserializer
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
@Override
public JsonDeserializer<?> modifyDeserializer(DeserializationConfig config,
BeanDescription beanDesc,
JsonDeserializer<?> deserializer) {
if (deserializer instanceof BeanDeserializer) {
BeanDeserializer beanDeserializer = (BeanDeserializer) deserializer;
return new EntityBeanDeserializer(beanDeserializer, deserializer.getObjectIdReader());
}
return super.modifyDeserializer(config, beanDesc, deserializer);
}
示例3: setupModule
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
@Override
public void setupModule(SetupContext context) {
context.addBeanDeserializerModifier(new BeanDeserializerModifier() {
@Override
public JsonDeserializer<?> modifyDeserializer(DeserializationConfig config, BeanDescription beanDesc, JsonDeserializer<?> deserializer) {
if(deserializer instanceof BeanDeserializer) {
return new MigrationBeanDeserializer((BeanDeserializerBase) deserializer, migrationCurrentStack);
}
return deserializer;
}
});
}
示例4: ThrowableDeserializer
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
public ThrowableDeserializer(BeanDeserializer paramBeanDeserializer)
{
super(paramBeanDeserializer);
this._vanillaProcessing = false;
}
示例5: ExtensibleObjectDeserializer
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
public ExtensibleObjectDeserializer(BeanDeserializer src) {
super(src);
}
示例6: modifyDeserializer
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
@Override
public JsonDeserializer<?> modifyDeserializer(DeserializationConfig config, BeanDescription beanDesc, JsonDeserializer<?> deserializer) {
return deserializer instanceof BeanDeserializer ? new ExtensibleObjectDeserializer((BeanDeserializer) deserializer) : deserializer;
}
示例7: ThrowableDeserializer
import com.fasterxml.jackson.databind.deser.BeanDeserializer; //导入依赖的package包/类
public ThrowableDeserializer(BeanDeserializer baseDeserializer)
{
super(baseDeserializer);
// need to disable this, since we do post-processing
_vanillaProcessing = false;
}