Skip to content

Provide support for javax.inject.Provider<> style injection for @Value and @Autowired [SPR-6079] #10747

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mike Youngstrom opened SPR-6079 and commented

Sometimes for @EL and @Autowired injection points the developer may not want the expression or the dependency evaluated at the time of injection but instead at a later point when the developer chooses to evaluate the injection. This is extremely useful for a number of reasons. Some of which are detailed in the javax.inject.Provider javadocs here.

http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Provider.html

With the added desire that the injected Provider be Serializable.

It would be nice if specifically this portion of the javax.inject functionality could be included in Spring 3.0 since it is so valuable especially when coupled with @Value. I would be happy to provide an initial patch if there were a chance for this to make it into Spring 3.0.


Affects: 3.0 M4

Issue Links:

Referenced from: commits 209f43b

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