|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.junitcdi.core.internal.BeanManagerHelper
public class BeanManagerHelper
BeanManagerを操作するためのヘルパークラスです.
| フィールドの概要 | |
|---|---|
protected static ThreadLocal<BeanManager> |
beanManagers
スレッド固有のCDIコンテナ |
| コンストラクタの概要 | |
|---|---|
BeanManagerHelper()
|
|
| メソッドの概要 | ||
|---|---|---|
protected static BeanManager |
createBeanManager()
CDIコンテナを作成します. |
|
protected static org.jboss.weld.context.api.BeanStore |
getApplicationContextStore()
ApplicationScopedのBeanStoreを返します. |
|
static
|
getBeanInstance(BeanManager beanManager,
Class<T> beanClass,
Annotation... bindings)
指定された型のbeanを返します. |
|
static
|
getBeanInstance(BeanManager beanManager,
String name)
指定された名前のbeanを返します. |
|
static
|
getBeanInstance(Class<T> beanClass,
Annotation... bindings)
指定された型のbeanを返します. |
|
static
|
getBeanInstance(String name)
指定された名前のbeanを返します. |
|
static BeanManager |
getBeanManager()
スレッド固有のCDIコンテナを返します. |
|
static org.jboss.weld.bootstrap.spi.Deployment |
getDeployment()
Deploymentを返します. |
|
static
|
getServices(Class<S> serviceType)
指定されたサービスを返します. |
|
protected static void |
setupLocalStorage(org.jboss.weld.bootstrap.spi.Deployment deployment,
org.jboss.weld.context.api.BeanStore applicationContextStore)
ContainerLocalStorageを準備します. |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static final ThreadLocal<BeanManager> beanManagers
| コンストラクタの詳細 |
|---|
public BeanManagerHelper()
| メソッドの詳細 |
|---|
public static BeanManager getBeanManager()
public static <T> T getBeanInstance(Class<T> beanClass,
Annotation... bindings)
T - beanの型beanClass - beanの型bindings - バインディング
public static <T> T getBeanInstance(BeanManager beanManager,
Class<T> beanClass,
Annotation... bindings)
T - beanの型beanManager - BeanManagerbeanClass - beanの型bindings - バインディング
public static <T> T getBeanInstance(String name)
T - beanの型name - beanの名前
public static <T> T getBeanInstance(BeanManager beanManager,
String name)
T - beanの型beanManager - BeanManagername - beanの名前
public static <S extends org.jboss.weld.bootstrap.api.Service> S getServices(Class<S> serviceType)
S - サービスの型serviceType - サービスの型
public static org.jboss.weld.bootstrap.spi.Deployment getDeployment()
Deploymentを返します.
Deploymentprotected static BeanManager createBeanManager()
protected static void setupLocalStorage(org.jboss.weld.bootstrap.spi.Deployment deployment,
org.jboss.weld.context.api.BeanStore applicationContextStore)
ContainerLocalStorageを準備します.
deployment - CDIコンテナの初期化に使用したDeploymentapplicationContextStore - ApplicationScopedのBeanStoreprotected static org.jboss.weld.context.api.BeanStore getApplicationContextStore()
ApplicationScopedのBeanStoreを返します.
ApplicationScopedのBeanStore
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||