org.seasar.junitcdi.core.util
クラス BeanLookupUtil

java.lang.Object
  上位を拡張 org.seasar.junitcdi.core.util.BeanLookupUtil

public class BeanLookupUtil
extends Object

beanのインスタンスをルックアップするユーティリティです.

作成者:
koichik

コンストラクタの概要
BeanLookupUtil()
           
 
メソッドの概要
static
<T> T
getBeanInstance(BeanManager beanManager, Class<T> beanClass, Annotation... bindings)
          指定された型のbeanを返します.
static
<T> T
getBeanInstance(Class<T> beanClass, Annotation... bindings)
          指定された型のbeanを返します.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BeanLookupUtil

public BeanLookupUtil()
メソッドの詳細

getBeanInstance

public static <T> T getBeanInstance(Class<T> beanClass,
                                    Annotation... bindings)
指定された型のbeanを返します.

型パラメータ:
T - beanの型
パラメータ:
beanClass - beanの型
bindings - バインディング
戻り値:
beanのインスタンス

getBeanInstance

public static <T> T getBeanInstance(BeanManager beanManager,
                                    Class<T> beanClass,
                                    Annotation... bindings)
指定された型のbeanを返します.

型パラメータ:
T - beanの型
パラメータ:
beanManager - BeanManager
beanClass - beanの型
bindings - バインディング
戻り値:
beanのインスタンス


Copyright © 2010 The Seasar Foundation. All Rights Reserved.