jp.liq.container.vocabulary
クラス Components

java.lang.Object
  上位を拡張 jp.liq.container.vocabulary.Components

public class Components
extends java.lang.Object

Component のインスタンスを生成します。

作成者:
nosen
関連項目:
ContainerVocabulary.component

コンストラクタの概要
Components()
           
 
メソッドの概要
 InjectableComponentList factory(java.lang.Class<?> type)
           
 InjectableComponentList factory(java.lang.Object obj)
          ObjectMethodComponentのリストを生成します。
 InjectableComponentList from(ClassMethodFinder<?> finder)
          他のコンポーネントのメソッドを使用してコンポーネントのインスタンスを構築する、 Componentのインスタンスを生成します。
<T> ConstructorComponent<T>
from(ConstructorWrapper<T> ctor)
          コンストラクタを使用してコンポーネントのインスタンスを構築する、 InjectableComponentのインスタンスを生成します。
<T> InjectableComponentList
from(ObjectMethodFinder finder)
          オブジェクトのメソッドを使用してコンポーネントのインスタンスを構築する、 Componentのインスタンスを生成します。
<T> ObjectComponent<T>
instance(java.lang.Class<T> type, T obj)
          ObjectComponent を生成します。
<T> MappingComponent<T>
mapping(java.lang.Class<T> type, java.lang.Class<?> subtype)
          MappingComponent を生成します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Components

public Components()
メソッドの詳細

mapping

public <T> MappingComponent<T> mapping(java.lang.Class<T> type,
                                       java.lang.Class<?> subtype)
MappingComponent を生成します。


instance

public <T> ObjectComponent<T> instance(java.lang.Class<T> type,
                                       T obj)
ObjectComponent を生成します。


factory

public InjectableComponentList factory(java.lang.Object obj)
ObjectMethodComponentのリストを生成します。

パラメータ:
obj -
戻り値:
生成された InjectableComponentList

factory

public InjectableComponentList factory(java.lang.Class<?> type)

from

public <T> ConstructorComponent<T> from(ConstructorWrapper<T> ctor)
コンストラクタを使用してコンポーネントのインスタンスを構築する、 InjectableComponentのインスタンスを生成します。

パラメータ:
ctor - コンポーネントのインスタンスを生成するコンストラクタ
戻り値:
生成された InjectableComponent

from

public <T> InjectableComponentList from(ObjectMethodFinder finder)
オブジェクトのメソッドを使用してコンポーネントのインスタンスを構築する、 Componentのインスタンスを生成します。

パラメータ:
finder - コンポーネントを生成するメソッド
戻り値:
生成された Componentのリスト

from

public InjectableComponentList from(ClassMethodFinder<?> finder)
他のコンポーネントのメソッドを使用してコンポーネントのインスタンスを構築する、 Componentのインスタンスを生成します。

パラメータ:
finder - コンポーネントを生成するメソッド
戻り値:
生成された Componentのリスト


Copyright © 2008. All Rights Reserved.