org.seasar.framework.container
インタフェース AccessTypeDef

既知の実装クラスの一覧:
AccessTypeFieldDef, AccessTypePropertyDef

public interface AccessTypeDef

このインターフェースは、 コンポーネントの状態に対するアクセスタイプ定義を表します。

与えられたコンポーネントに対し、 アクセスタイプ定義に基づいて、 S2コンテナ上のコンポーネントをインジェクションする機能も提供します。

アクセスタイプ定義には、 以下のものがあります。

property
getter/setterメソッドによるアクセスを表します。
field
フィールドへの直接アクセスを表します。

アクセスタイプ定義は、ファクトリ経由で取得します。

作成者:
koichik, belltree
関連項目:
PropertyDef

フィールドの概要
static String FIELD_NAME
          アクセスタイプ定義fieldを表す定数です。
static String PROPERTY_NAME
          アクセスタイプ定義propertyを表す定数です。
 
メソッドの概要
 void bind(ComponentDef componentDef, PropertyDef propertyDef, BindingTypeDef bindingTypeDef, Object component)
          アクセスタイプ定義に基づいて、 componentのプロパティまたはフィールドにS2コンテナ上のコンポーネントをインジェクションします。
 void bind(ComponentDef componentDef, PropertyDef propertyDef, Object component)
          アクセスタイプ定義に基づいて、 componentのプロパティまたはフィールドにS2コンテナ上のコンポーネントをインジェクションします。
 String getName()
          アクセスタイプ定義名を返します。
 

フィールドの詳細

PROPERTY_NAME

public static final String PROPERTY_NAME
アクセスタイプ定義propertyを表す定数です。

関連項目:
定数フィールド値

FIELD_NAME

public static final String FIELD_NAME
アクセスタイプ定義fieldを表す定数です。

関連項目:
定数フィールド値
メソッドの詳細

getName

public String getName()
アクセスタイプ定義名を返します。

戻り値:
アクセスタイプ定義名
関連項目:
PROPERTY_NAME, FIELD_NAME

bind

public void bind(ComponentDef componentDef,
                 PropertyDef propertyDef,
                 Object component)
アクセスタイプ定義に基づいて、 componentのプロパティまたはフィールドにS2コンテナ上のコンポーネントをインジェクションします。

パラメータ:
componentDef - コンポーネント定義
propertyDef - プロパティ定義
component - コンポーネント

bind

public void bind(ComponentDef componentDef,
                 PropertyDef propertyDef,
                 BindingTypeDef bindingTypeDef,
                 Object component)
アクセスタイプ定義に基づいて、 componentのプロパティまたはフィールドにS2コンテナ上のコンポーネントをインジェクションします。

パラメータ:
componentDef - コンポーネント定義
propertyDef - プロパティ定義
bindingTypeDef - バインディングタイプ定義
component - コンポーネント


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.