|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.uruma.util.S2ContainerUtil
public class S2ContainerUtil
S2Container を利用するためのユーティリティクラスです。
| メソッドの概要 | |
|---|---|
static Object |
getComponent(Class<?> componentClass)
指定されたクラスに対応するコンポーネントを S2Container から取得して返します。 |
static Object |
getComponent(Class<?> componentClass,
S2Container container)
指定されたクラスに対応するコンポーネントを S2Container から取得して返します。 |
static ComponentDef |
getComponentDef(Class<?> componentClass)
指定されたクラスに対応するコンポーネントを S2Container から取得して返します。 |
static ComponentDef |
getComponentDef(String componentName)
指定された名前に対応するコンポーネントを S2Container から取得して返します。 |
static ComponentDef |
getComponentDefNoException(String componentName)
指定された名前に対応するコンポーネントを S2Container から取得して返します。 |
static Object |
getComponentNoException(Class<?> componentClass)
指定されたクラスに対応するコンポーネントを S2Container から取得して返します。 |
static Object |
getComponentNoException(Class<?> componentClass,
S2Container container)
指定されたクラスに対応するコンポーネントを S2Container から取得して返します。 |
static Object |
getComponentNoException(String componentName)
指定された名前に対応するコンポーネントを S2Container から取得して返します。 |
static Object |
getComponentNoException(String componentName,
S2Container container)
指定された名前に対応するコンポーネントを S2Container から取得して返します。 |
static ComponentDef |
getComponentNoExceptionDef(Class<?> componentClass)
指定されたクラスに対応するコンポーネントを S2Container から取得して返します。 |
static void |
injectDependency(Object target,
S2Container container)
指定されたオブジェクトに対して S2Container からコンポーネントをインジェクションします。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public static Object getComponentNoException(String componentName)
S2Container から取得して返します。
コンポーネントが存在しない場合は例外をスローせず、null を返します。
componentName - コンポーネント名称
public static Object getComponentNoException(String componentName,
S2Container container)
S2Container から取得して返します。
コンポーネントが存在しない場合は例外をスローせず、null を返します。
componentName - コンポーネント名称container - 検索対象の S2Container
public static Object getComponentNoException(Class<?> componentClass,
S2Container container)
S2Container から取得して返します。null を返します。
componentClass - コンポーネントのクラスcontainer - S2Container
public static Object getComponentNoException(Class<?> componentClass)
S2Container から取得して返します。null を返します。
componentClass - コンポーネントのクラス
public static ComponentDef getComponentDefNoException(String componentName)
S2Container から取得して返します。null を返します。
componentName - コンポーネント名称
public static ComponentDef getComponentNoExceptionDef(Class<?> componentClass)
S2Container から取得して返します。null を返します。
componentClass - コンポーネントクラス
public static ComponentDef getComponentDef(String componentName)
S2Container から取得して返します。
componentName - コンポーネント名称
public static ComponentDef getComponentDef(Class<?> componentClass)
S2Container から取得して返します。
componentClass - コンポーネントクラス
public static Object getComponent(Class<?> componentClass)
S2Container から取得して返します。
componentClass - コンポーネントクラス
public static Object getComponent(Class<?> componentClass,
S2Container container)
S2Container から取得して返します。
componentClass - コンポーネントクラスcontainer - 検索対象の S2Container
public static void injectDependency(Object target,
S2Container container)
S2Container からコンポーネントをインジェクションします。
target で指定されたオブジェクトに対して、container で指定された
S2Container からコンポーネントをインジェクションします。
target - ターゲットオブジェクトcontainer - S2Container オブジェクト
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||