jp.terasoluna.fw.batch.annotation.util
クラス GenericBeanFactoryAccessorEx

java.lang.Object
  上位を拡張 org.springframework.beans.factory.generic.GenericBeanFactoryAccessor
      上位を拡張 jp.terasoluna.fw.batch.annotation.util.GenericBeanFactoryAccessorEx

public class GenericBeanFactoryAccessorEx
extends org.springframework.beans.factory.generic.GenericBeanFactoryAccessor

GenericBeanFactoryAccessorの拡張クラス。

アノテーションの型でBeanを探索するメソッドを 親コンテキストからもbean取得できるように変更。

関連項目:
GenericBeanFactoryAccessor, 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)
           
 
クラス org.springframework.beans.factory.generic.GenericBeanFactoryAccessor から継承されたメソッド
getBean, getBean, getBeanFactory, getBeansOfType, getBeansOfType
 
クラス 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)
オーバーライド:
クラス org.springframework.beans.factory.generic.GenericBeanFactoryAccessor 内の getBeansWithAnnotation

findAnnotationOnBean

public <A extends Annotation> A findAnnotationOnBean(String beanName,
                                                     Class<A> annotationType)
オーバーライド:
クラス org.springframework.beans.factory.generic.GenericBeanFactoryAccessor 内の findAnnotationOnBean


Copyright © 2011. All Rights Reserved.