removed getBeansWithAnnotation(Class,boolean,boolean) method from ListableBeanFactory; reimplemented getBeansWithAnnotation(Class) to avoid use of getBeanNamesForType(Object.class)
This commit is contained in:
parent
d7a1630381
commit
db6e807421
|
|
@ -1081,13 +1081,6 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
||||||
return getBeanFactory().getBeansWithAnnotation(annotationType);
|
return getBeanFactory().getBeansWithAnnotation(annotationType);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, Object> getBeansWithAnnotation(
|
|
||||||
Class<? extends Annotation> annotationType, boolean includeNonSingletons, boolean allowEagerInit)
|
|
||||||
throws BeansException {
|
|
||||||
|
|
||||||
return getBeanFactory().getBeansWithAnnotation(annotationType, includeNonSingletons, allowEagerInit);
|
|
||||||
}
|
|
||||||
|
|
||||||
public <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType) {
|
public <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType) {
|
||||||
return getBeanFactory().findAnnotationOnBean(beanName, annotationType);
|
return getBeanFactory().findAnnotationOnBean(beanName, annotationType);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue