Java 类org.codehaus.jackson.map.ser.CustomSerializerFactory 实例源码

项目:iwethey    文件:JacksonSerializer.java   
public JacksonSerializer()
{
    this.serializerFactory = new CustomSerializerFactory();
    this.serializerFactory.addGenericMapping(CGLIBLazyInitializer.class, new CGLIBLazyInitializerHandler());

    this.factory = new MappingJsonFactory(new ObjectMapper(this.serializerFactory));
    this.factory.setGeneratorFeature(JsonGenerator.Feature.QUOTE_FIELD_NAMES, true);
}
项目:spring-open    文件:CustomSerializerHelper.java   
/**
 * Constructor.
 */
public CustomSerializerHelper() {
    customSerializerModule = new SimpleModule("custom-serializers", new Version(1, 0, 0, null));
    sf =  new CustomSerializerFactory();
}
项目:izzymongo    文件:CustomObjectMapper.java   
public CustomObjectMapper() {
    CustomSerializerFactory sf = new CustomSerializerFactory();
    sf.addSpecificMapping(ObjectId.class, new ObjectIdSerializer());
    this.setSerializerFactory(sf);
}