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()); } } }
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); }
@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; } }
@Bean @ConditionalOnMissingBean public Module jaxsonModule() { return new SimpleModule("legacyJacksonModule", Version.unknownVersion()); }
public final void setupModule(Module.SetupContext paramSetupContext) { paramSetupContext.addDeserializers(new a()); }
/** * Sets the Jackson Module to be used. * * @param module Module */ public void setModule(Module module) { this.module = module; }