public class GenericBeanFactoryAccessorEx extends Object
アノテーションの型でBeanを探索するメソッドを 親コンテキストからもbean取得できるように変更。 singleton(デフォルト)のbeanにJDKプロキシがついていても、アノテーションの検査ができるように変更。
BeanFactoryUtils
コンストラクタと説明 |
---|
GenericBeanFactoryAccessorEx(org.springframework.beans.factory.ListableBeanFactory beanFactory)
コンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
<A extends Annotation> |
findAnnotationOnBean(String beanName,
Class<A> annotationType) |
Map<String,Object> |
getBeansWithAnnotation(Class<? extends Annotation> annotationType) |
public GenericBeanFactoryAccessorEx(org.springframework.beans.factory.ListableBeanFactory beanFactory)
beanFactory
- public Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
public <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType)
Copyright © 2014 NTT DATA Corporation.