Java 类org.codehaus.jackson.map.Module 实例源码

项目:ingress-indonesia-dev    文件:SimpleModule.java   
public void setupModule(Module.SetupContext paramSetupContext)
{
  if (this._serializers != null)
    paramSetupContext.addSerializers(this._serializers);
  if (this._deserializers != null)
    paramSetupContext.addDeserializers(this._deserializers);
  if (this._keySerializers != null)
    paramSetupContext.addKeySerializers(this._keySerializers);
  if (this._keyDeserializers != null)
    paramSetupContext.addKeyDeserializers(this._keyDeserializers);
  if (this._abstractTypes != null)
    paramSetupContext.addAbstractTypeResolver(this._abstractTypes);
  if (this._valueInstantiators != null)
    paramSetupContext.addValueInstantiators(this._valueInstantiators);
  if (this._mixins != null)
  {
    Iterator localIterator = this._mixins.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      paramSetupContext.setMixInAnnotations((Class)localEntry.getKey(), (Class)localEntry.getValue());
    }
  }
}
项目:12306-android-Decompile    文件:SimpleModule.java   
public void setupModule(Module.SetupContext paramSetupContext)
{
  if (this._serializers != null)
    paramSetupContext.addSerializers(this._serializers);
  if (this._deserializers != null)
    paramSetupContext.addDeserializers(this._deserializers);
  if (this._keySerializers != null)
    paramSetupContext.addKeySerializers(this._keySerializers);
  if (this._keyDeserializers != null)
    paramSetupContext.addKeyDeserializers(this._keyDeserializers);
  if (this._abstractTypes != null)
    paramSetupContext.addAbstractTypeResolver(this._abstractTypes);
}
项目:fns-projects    文件:LegacyJacksonConfig.java   
@PostConstruct
public void init() {
    Collection<ObjectMapper> mappers = BeanFactoryUtils
            .beansOfTypeIncludingAncestors(this.beanFactory, ObjectMapper.class)
            .values();
    Collection<Module> modules = BeanFactoryUtils.beansOfTypeIncludingAncestors(
            this.beanFactory, Module.class).values();
    for (ObjectMapper mapper : mappers) {
        mapper.registerModule(modules.iterator().next());  // there can be only one!
        break;
    }
}
项目:12306-android-Decompile    文件:SimpleModule.java   
public void setupModule(Module.SetupContext paramSetupContext)
{
  if (this._serializers != null)
    paramSetupContext.addSerializers(this._serializers);
  if (this._deserializers != null)
    paramSetupContext.addDeserializers(this._deserializers);
  if (this._keySerializers != null)
    paramSetupContext.addKeySerializers(this._keySerializers);
  if (this._keyDeserializers != null)
    paramSetupContext.addKeyDeserializers(this._keyDeserializers);
  if (this._abstractTypes != null)
    paramSetupContext.addAbstractTypeResolver(this._abstractTypes);
}
项目:fns-projects    文件:LegacyJacksonConfig.java   
@Bean
@ConditionalOnMissingBean
public Module jaxsonModule() {
    return new SimpleModule("legacyJacksonModule", Version.unknownVersion());
}
项目:ingress-indonesia-dev    文件:b.java   
public final void setupModule(Module.SetupContext paramSetupContext)
{
  paramSetupContext.addDeserializers(new a());
}
项目:community-edition-old    文件:JacksonHelper.java   
/**
 * Sets the Jackson Module to be used.
 * 
 * @param module Module
 */
public void setModule(Module module)
{
    this.module = module;
}