jp.terasoluna.fw.batch.annotation.util
クラス GenericBeanFactoryAccessorEx
java.lang.Object
jp.terasoluna.fw.batch.annotation.util.GenericBeanFactoryAccessorEx
public class GenericBeanFactoryAccessorEx
- extends Object
GenericBeanFactoryAccessorの拡張クラス。
アノテーションの型でBeanを探索するメソッドを 親コンテキストからもbean取得できるように変更。
singleton(デフォルト)のbeanにJDKプロキシがついていても、アノテーションの検査ができるように変更。
- 関連項目:
BeanFactoryUtils
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericBeanFactoryAccessorEx
public GenericBeanFactoryAccessorEx(org.springframework.beans.factory.ListableBeanFactory beanFactory)
- コンストラクタ
- パラメータ:
beanFactory
-
getBeansWithAnnotation
public Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
findAnnotationOnBean
public <A extends Annotation> A findAnnotationOnBean(String beanName,
Class<A> annotationType)
Copyright © 2012. All Rights Reserved.