jp.terasoluna.fw.util
クラス GenericBeanFactoryAccessorEx

java.lang.Object
  上位を拡張 jp.terasoluna.fw.util.GenericBeanFactoryAccessorEx

public class GenericBeanFactoryAccessorEx
extends Object

GenericBeanFactoryAccessorの拡張クラス。

アノテーションの型でBeanを探索するメソッドを 親コンテキストからもbean取得できるように変更。 singleton(デフォルト)のbeanにJDKプロキシがついていても、アノテーションの検査ができるように変更。

関連項目:
BeanFactoryUtils

コンストラクタの概要
GenericBeanFactoryAccessorEx(org.springframework.beans.factory.ListableBeanFactory beanFactory)
          コンストラクタ
 
メソッドの概要
<A extends Annotation>
A
findAnnotationOnBean(String beanName, Class<A> annotationType)
           
 Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
           
 
クラス 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.