• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DeserializerFactoryConfig类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig的典型用法代码示例。如果您正苦于以下问题:Java DeserializerFactoryConfig类的具体用法?Java DeserializerFactoryConfig怎么用?Java DeserializerFactoryConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DeserializerFactoryConfig类属于com.fasterxml.jackson.databind.cfg包,在下文中一共展示了DeserializerFactoryConfig类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: withConfig

点赞 3

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
/**
 * Method used by module registration functionality, to construct a new bean
 * deserializer factory
 * with different configuration settings.
 */
@Override
public DeserializerFactory withConfig(DeserializerFactoryConfig config)
{
    if (_factoryConfig == config) {
        return this;
    }
    /* 22-Nov-2010, tatu: Handling of subtypes is tricky if we do immutable-with-copy-ctor;
     *    and we pretty much have to here either choose between losing subtype instance
     *    when registering additional deserializers, or losing deserializers.
     *    Instead, let's actually just throw an error if this method is called when subtype
     *    has not properly overridden this method; this to indicate problem as soon as possible.
     */
    if (getClass() != BeanDeserializerFactory.class) {
        throw new IllegalStateException("Subtype of BeanDeserializerFactory ("+getClass().getName()
                +") has not properly overridden method 'withAdditionalDeserializers': can not instantiate subtype with "
                +"additional deserializer definitions");
    }
    return new BeanDeserializerFactory(config);
}
 

开发者ID:joyplus,
项目名称:joyplus-tv,
代码行数:25,
代码来源:BeanDeserializerFactory.java

示例2: withConfig

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
public DeserializerFactory withConfig(DeserializerFactoryConfig paramDeserializerFactoryConfig)
{
  if (this._factoryConfig == paramDeserializerFactoryConfig)
    return this;
  if (getClass() != BeanDeserializerFactory.class)
    throw new IllegalStateException("Subtype of BeanDeserializerFactory (" + getClass().getName() + ") has not properly overridden method 'withAdditionalDeserializers': can not instantiate subtype with additional deserializer definitions");
  return new BeanDeserializerFactory(paramDeserializerFactoryConfig);
}
 

开发者ID:mmmsplay10,
项目名称:QuizUpWinner,
代码行数:9,
代码来源:BeanDeserializerFactory.java

示例3: getDeserializerFactoryConfig

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
private static DeserializerFactoryConfig getDeserializerFactoryConfig(ObjectMapper objectMapper) {
	return ((BasicDeserializerFactory) objectMapper.getDeserializationContext().getFactory()).getFactoryConfig();
}
 

开发者ID:langtianya,
项目名称:spring4-understanding,
代码行数:4,
代码来源:Jackson2ObjectMapperBuilderTests.java

示例4: DefaultDeserializerFactory

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
/**
 * @param config
 */
public DefaultDeserializerFactory(DeserializerFactoryConfig config) {
	super(config);
}
 

开发者ID:easycodebox,
项目名称:easycode,
代码行数:7,
代码来源:DefaultDeserializerFactory.java

示例5: BasicDeserializerFactory

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
protected BasicDeserializerFactory(DeserializerFactoryConfig paramDeserializerFactoryConfig)
{
  this._factoryConfig = paramDeserializerFactoryConfig;
}
 

开发者ID:mmmsplay10,
项目名称:QuizUpWinner,
代码行数:5,
代码来源:BasicDeserializerFactory.java

示例6: getFactoryConfig

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
public DeserializerFactoryConfig getFactoryConfig()
{
  return this._factoryConfig;
}
 

开发者ID:mmmsplay10,
项目名称:QuizUpWinner,
代码行数:5,
代码来源:BasicDeserializerFactory.java

示例7: BeanDeserializerFactory

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
public BeanDeserializerFactory(DeserializerFactoryConfig paramDeserializerFactoryConfig)
{
  super(paramDeserializerFactoryConfig);
}
 

开发者ID:mmmsplay10,
项目名称:QuizUpWinner,
代码行数:5,
代码来源:BeanDeserializerFactory.java

示例8: getDeserializerFactoryConfig

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
private static final DeserializerFactoryConfig getDeserializerFactoryConfig(ObjectMapper objectMapper) {
	Object contextProp = new DirectFieldAccessor(objectMapper).getPropertyValue("_deserializationContext");
	Object factoryProp = new DirectFieldAccessor(contextProp).getPropertyValue("_factory");
	return (DeserializerFactoryConfig) new DirectFieldAccessor(factoryProp).getPropertyValue("_factoryConfig");
}
 

开发者ID:deathspeeder,
项目名称:class-guard,
代码行数:6,
代码来源:Jackson2ObjectMapperFactoryBeanTests.java

示例9: BasicDeserializerFactory

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
protected BasicDeserializerFactory(DeserializerFactoryConfig config) {
    _factoryConfig = config;
}
 

开发者ID:joyplus,
项目名称:joyplus-tv,
代码行数:4,
代码来源:BasicDeserializerFactory.java

示例10: BeanDeserializerFactory

点赞 2

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
public BeanDeserializerFactory(DeserializerFactoryConfig config) {
    super(config);
}
 

开发者ID:joyplus,
项目名称:joyplus-tv,
代码行数:4,
代码来源:BeanDeserializerFactory.java

示例11: getFactoryConfig

点赞 1

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
/**
 * Method for getting current {@link DeserializerFactoryConfig}.
  *<p>
 * Note that since instances are immutable, you can NOT change settings
 * by accessing an instance and calling methods: this will simply create
 * new instance of config object.
 */
public DeserializerFactoryConfig getFactoryConfig() {
    return _factoryConfig;
}
 

开发者ID:joyplus,
项目名称:joyplus-tv,
代码行数:11,
代码来源:BasicDeserializerFactory.java

示例12: withConfig

点赞 1

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
protected abstract DeserializerFactory withConfig(DeserializerFactoryConfig paramDeserializerFactoryConfig); 

开发者ID:mmmsplay10,
项目名称:QuizUpWinner,
代码行数:2,
代码来源:BasicDeserializerFactory.java

示例13: withConfig

点赞 1

import com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig; //导入依赖的package包/类
protected abstract DeserializerFactory withConfig(DeserializerFactoryConfig config); 

开发者ID:joyplus,
项目名称:joyplus-tv,
代码行数:2,
代码来源:BasicDeserializerFactory.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)