-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Cemo Koc opened SPR-10768 and commented
Spring does not has support injecting capabilities for JsonSerializers. This is almost same as Validator part of Spring project. Serializers must be created by Spring and injected necessary parts to inside it.
a sample:
@Component
public class PhotoSerializer extends JsonSerializer<String> {
@Autowired
TestService testService;
@Override
public void serialize(String value, JsonGenerator jgen, SerializerProvider provider) throws IOException {
jgen.writeString(testService.directory() + "/photo/".concat(value));
}
}
Affects: 3.2.3
Issue Links:
- Require Jackson 2.1+, Quartz 2.1.4+, EhCache 2.5+ [SPR-11262] #15887 Require Jackson 2.1+, Quartz 2.1.4+, EhCache 2.5+
- Allow usage of ConversionService for Jackson HttpMessageConverter [SPR-7054] #11715 Allow usage of ConversionService for Jackson HttpMessageConverter
- SpringHandlerInstantiator should support all HandlerInstantiator-provided factory methods [SPR-14347] #18919 SpringHandlerInstantiator should support all HandlerInstantiator-provided factory methods
3 votes, 12 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement