removed getBeansWithAnnotation(Class,boolean,boolean) method from ListableBeanFactory; reimplemented getBeansWithAnnotation(Class) to avoid use of getBeanNamesForType(Object.class)

This commit is contained in:
Juergen Hoeller 2009-12-13 23:24:43 +00:00
parent d7a1630381
commit db6e807421
1 changed files with 0 additions and 7 deletions

View File

@ -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);
} }