本文整理汇总了Java中org.codehaus.jackson.map.Module.SetupContext方法的典型用法代码示例。如果您正苦于以下问题:Java Module.SetupContext方法的具体用法?Java Module.SetupContext怎么用?Java Module.SetupContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.codehaus.jackson.map.Module
的用法示例。
在下文中一共展示了Module.SetupContext方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupModule
import org.codehaus.jackson.map.Module; //导入方法依赖的package包/类
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());
}
}
}
示例2: setupModule
import org.codehaus.jackson.map.Module; //导入方法依赖的package包/类
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);
}
示例3: setupModule
import org.codehaus.jackson.map.Module; //导入方法依赖的package包/类
public final void setupModule(Module.SetupContext paramSetupContext)
{
paramSetupContext.addDeserializers(new a());
}