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

项目:libcrunch    文件:JsonTopologySerializer.java   
public void setupModule(SetupContext context) {
  context.addBeanSerializerModifier(new BeanSerializerModifier() {
    @Override
    public List<BeanPropertyWriter> changeProperties(SerializationConfig config,
      BasicBeanDescription beanDesc, List<BeanPropertyWriter> beanProperties) {
      ListIterator<BeanPropertyWriter> it = beanProperties.listIterator();
      while (it.hasNext()) {
        BeanPropertyWriter writer = it.next();
        // replace the bean writer with my own if it is for "failed"
        if (writer.getName().equals("failed")) {
          BeanPropertyWriter newWriter = new IsFailedWriter(writer);
          it.set(newWriter);
        }
      }
      return beanProperties;
    }
  });
}
项目:12306-android-Decompile    文件:SerializerFactory.java   
public final SerializerFactory withSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier)
{
  return withConfig(getConfig().withSerializerModifier(paramBeanSerializerModifier));
}
项目:12306-android-Decompile    文件:SerializerFactory.java   
public final SerializerFactory withSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier)
{
  return withConfig(getConfig().withSerializerModifier(paramBeanSerializerModifier));
}
项目:12306-android-Decompile    文件:SerializerFactory.java   
public abstract Iterable<BeanSerializerModifier> serializerModifiers();
项目:12306-android-Decompile    文件:SerializerFactory.java   
public abstract Config withSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier);
项目:12306-android-Decompile    文件:Module.java   
public abstract void addBeanSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier);
项目:12306-android-Decompile    文件:SerializerFactory.java   
public abstract Iterable<BeanSerializerModifier> serializerModifiers();
项目:12306-android-Decompile    文件:SerializerFactory.java   
public abstract Config withSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier);
项目:12306-android-Decompile    文件:Module.java   
public abstract void addBeanSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier);
项目:ingress-indonesia-dev    文件:SerializerFactory$Config.java   
public abstract Iterable<BeanSerializerModifier> serializerModifiers();