jp.liq.container.component
クラス ConstructorComponent<T>

java.lang.Object
  上位を拡張 jp.liq.container.component.InjectableComponent<T,ConstructorComponent<T>>
      上位を拡張 jp.liq.container.component.ConstructorComponent<T>
すべての実装されたインタフェース:
Component<T>

public final class ConstructorComponent<T>
extends InjectableComponent<T,ConstructorComponent<T>>

コンストラクタを使用してコンポーネントのインスタンスを生成するコンポーネントです。

作成者:
nose

コンストラクタの概要
ConstructorComponent(ConstructorWrapper<T> ctor, java.lang.Class<T> componentType, boolean recycled)
          このクラスのインスタンスを構築します。
 
メソッドの概要
protected  ObjectFactory<T> createObjectFactory(Resolver resolver)
          コンポーネントのインスタンスを生成する ObjectFactory を生成します。
 java.lang.Object getDescription()
          このコンポーネントの説明を返します。
 ConstructorComponent<T> getThis()
          自分自身のインスタンスを返却します。
 
クラス jp.liq.container.component.InjectableComponent から継承されたメソッド
getInstance, getType, with
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ConstructorComponent

public ConstructorComponent(ConstructorWrapper<T> ctor,
                            java.lang.Class<T> componentType,
                            boolean recycled)
このクラスのインスタンスを構築します。

パラメータ:
ctor - コンポーネントのインスタンスを生成するコンストラクタ。
componentType - コンポーネントの型
recycled - 生成したインスタンスを再利用する
メソッドの詳細

getDescription

public final java.lang.Object getDescription()
インタフェース Component の記述:
このコンポーネントの説明を返します。

戻り値:
説明
関連項目:
Component.getDescription()

createObjectFactory

protected final ObjectFactory<T> createObjectFactory(Resolver resolver)
クラス InjectableComponent の記述:
コンポーネントのインスタンスを生成する ObjectFactory を生成します。

定義:
クラス InjectableComponent<T,ConstructorComponent<T>> 内の createObjectFactory
パラメータ:
resolver - ObjectFactoryを生成するのに必要なコンポーネントをここから取得。
戻り値:
生成された ObjectFactory
関連項目:
InjectableComponent.createObjectFactory(Resolver)

getThis

public ConstructorComponent<T> getThis()
クラス InjectableComponent の記述:
自分自身のインスタンスを返却します。

定義:
クラス InjectableComponent<T,ConstructorComponent<T>> 内の getThis
戻り値:
this
関連項目:
InjectableComponent.getThis()


Copyright © 2008. All Rights Reserved.