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

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

public interface AccessTypeDef

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

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

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

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

作成者:
koichik, belltree (Javadoc)
関連項目:
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-2006 The Seasar Foundation. All Rights Reserved.