org.seasar.junitcdi.core.util
クラス BeanLookupUtil
java.lang.Object
org.seasar.junitcdi.core.util.BeanLookupUtil
public class BeanLookupUtil
- extends Object
beanのインスタンスをルックアップするユーティリティです.
- 作成者:
- koichik
| クラス 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 - BeanManagerbeanClass - beanの型bindings - バインディング
- 戻り値:
- beanのインスタンス
Copyright © 2010 The Seasar Foundation. All Rights Reserved.