Пример #1
0
 public <T> SimpleModule addKeySerializer(Class<? extends T> type, JsonSerializer<T> ser) {
   if (_keySerializers == null) {
     _keySerializers = new SimpleSerializers();
   }
   _keySerializers.addSerializer(type, ser);
   return this;
 }
Пример #2
0
 public SimpleModule addSerializer(JsonSerializer<?> ser) {
   if (_serializers == null) {
     _serializers = new SimpleSerializers();
   }
   _serializers.addSerializer(ser);
   return this;
 }