Closed
Description
Juergen Hoeller opened SPR-14033 and commented
As of 4.3, we have a rather simple InjectionPoint
class as a base class for DependencyDescriptor
, primarily used for exception reporting purposes. However, it would also be well suited as an argument for @Bean
methods, along the lines of the CDI InjectionPoint
argument on an @Produces
method.
This has been raised in a comment on our recent 4.3 core container blog post: http://spring.io/blog/2016/03/04/core-container-refinements-in-spring-framework-4-3#comment-2551909782
A CDI example raised there: http://buraktas.com/cdi-dependency-injection-producer-method-example/
Issue Links:
- Documentation for InjectionPoint argument on @Bean method [SPR-14797] #19363 Documentation for InjectionPoint argument on
@Bean
method
Referenced from: commits a95bf6e