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

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

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

オブジェクトのメソッドを使用してコンポーネントのインスタンスを生成するコンポーネントです。

作成者:
nose

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

コンストラクタの詳細

ObjectMethodComponent

public ObjectMethodComponent(java.lang.Class<T> returnType,
                             ObjectMethod method)
このクラスのインスタンスを構築します。

パラメータ:
returnType - メソッドの戻り値=コンポーネントの型。
method - コンポーネントのインスタンスを生成するメソッド。
メソッドの詳細

getDescription

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

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

createObjectFactory

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

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

getThis

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

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


Copyright © 2008. All Rights Reserved.