throws JsonMappingException List<BeanPropertyDefinition> properties = beanDesc.findProperties(); AnnotationIntrospector intr = config.getAnnotationIntrospector();
throws JsonMappingException List<BeanPropertyDefinition> props = beanDesc.findProperties();
throws JsonMappingException List<BeanPropertyDefinition> properties = beanDesc.findProperties(); AnnotationIntrospector intr = config.getAnnotationIntrospector();
throws JsonMappingException List<BeanPropertyDefinition> props = beanDesc.findProperties();
@Override public JsonSerializer<?> modifySerializer(SerializationConfig config, BasicBeanDescription beanDesc, JsonSerializer<?> serializer) { if(serializer instanceof BeanSerializer) { List<BeanPropertyDefinition> properties = beanDesc.findProperties(); for(BeanPropertyDefinition property : properties) { if(property.getName().equals("value") || property.getName().equals("any")) { String fieldName = property.getField().getName(); if(fieldName != null) return super.modifySerializer(config, beanDesc, new CustomValueObjectSerializer((BeanSerializer)serializer, fieldName)); } } } return super.modifySerializer(config, beanDesc, serializer); } }
for (BeanPropertyDefinition prop : beanDesc.findProperties()) { AnnotatedMethod setter = prop.getSetter(); if (setter != null && setter.getParameterClass(0).isInterface()) {
@Override public JsonSerializer<?> modifySerializer(SerializationConfig config, BasicBeanDescription beanDesc, JsonSerializer<?> serializer) { if(serializer instanceof BeanSerializer) { List<BeanPropertyDefinition> properties = beanDesc.findProperties(); for(BeanPropertyDefinition property : properties) { if(property.getName().equals("value") || property.getName().equals("any")) { String fieldName = property.getField().getName(); if(fieldName != null) return super.modifySerializer(config, beanDesc, new CustomValueObjectSerializer((BeanSerializer)serializer, fieldName)); } } } return super.modifySerializer(config, beanDesc, serializer); } }
throws JsonMappingException List<BeanPropertyDefinition> properties = beanDesc.findProperties(); AnnotationIntrospector intr = config.getAnnotationIntrospector();
throws JsonMappingException List<BeanPropertyDefinition> properties = beanDesc.findProperties(); AnnotationIntrospector intr = config.getAnnotationIntrospector();
throws JsonMappingException List<BeanPropertyDefinition> props = beanDesc.findProperties();
throws JsonMappingException List<BeanPropertyDefinition> props = beanDesc.findProperties();