Closed
Description
Ilya Kazakevich opened SPR-8891 and commented
Because of http://stackoverflow.com/questions/8345723/java-spring-tagging-beans-in-xml-to-get-specific-bean-by-class-and-tag I need to find bean which is an instance of specific interface and has special qualifier.
Spring needs to have something like this: beanFactory.getBean(new NameCondition("someName"), new ClassCondition(MyInterface.class));
beanFactory.getBean(new QualifierCondition("myQualif"), new ClassCondition(MyInterface.class));
beanFactory.getBean(new ClassCondition(MyInterface.class));
getBean should be vararg method that accepts several conditions and joins them using "AND".
Issue Links:
- Cyclic bean methods cause IllegalArgumentException instead of BeanCurrentlyInCreationException [SPR-17358] #19778 Cyclic bean methods cause IllegalArgumentException instead of BeanCurrentlyInCreationException
- Ability to query an ApplicationContext for annotations on a bean [SPR-12929] #17522 Ability to query an ApplicationContext for annotations on a bean
- Support dynamic bean lookup a la CDI's Instance type [SPR-13132] #17723 Support dynamic bean lookup a la CDI's Instance type
- Programmatic ObjectProvider retrieval through BeanFactory API [SPR-17075] #21613 Programmatic ObjectProvider retrieval through BeanFactory API
- Allow to specify bean qualifier in an AOP @Around / @Before / ... [SPR-11217] #15842 Allow to specify bean qualifier in an AOP
@Around
/@Before
/ ...
1 votes, 10 watchers