Skip to content

Provide mechanism for injecting a Serializable Provider<T> or ObjectFactory<T> via XML [SPR-6998] #11663

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mike Youngstrom opened SPR-6998 and commented

This issue is related to #11417 though I think it should work for non EL situations as well. To fix this I would be happy if something like ObjectFactoryCreatingFactoryBean were created for the Provider<T> interface as well. And that both were enhanced to make the respective Provider or ObjectFactory serializable similar to what can be done with @Inject/@Autowired with #10747. That said if the decision were made to only support this through EL (#11417) that would be fine too though it may be less risky to simply make ObjectFactoryCreatingFactoryBean return a serializable ObjectFactory sooner?


Affects: 3.0.1

Issue Links:

Referenced from: commits 16eb915

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions