| 
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.framework.container.impl.SimpleComponentDef
ComponentDefのシンプルな実装です。
| コンストラクタの概要 | |
SimpleComponentDef()
SimpleComponentDefを作成します。 | 
|
SimpleComponentDef(java.lang.Class componentClass)
SimpleComponentDefを作成します。 | 
|
SimpleComponentDef(java.lang.Class componentClass,
                   java.lang.String componentName)
SimpleComponentDefを作成します。 | 
|
SimpleComponentDef(java.lang.Object component)
SimpleComponentDefを作成します。 | 
|
SimpleComponentDef(java.lang.Object component,
                   java.lang.Class componentClass)
SimpleComponentDefを作成します。 | 
|
SimpleComponentDef(java.lang.Object component,
                   java.lang.Class componentClass,
                   java.lang.String componentName)
SimpleComponentDefを作成します。 | 
|
SimpleComponentDef(java.lang.Object component,
                   java.lang.String componentName)
SimpleComponentDefを作成します。 | 
|
| メソッドの概要 | |
 void | 
addArgDef(ArgDef constructorArgDef)
引数定義を追加します。  | 
 void | 
addAspectDef(AspectDef aspectDef)
アスペクト定義を追加します。  | 
 void | 
addAspectDef(int index,
             AspectDef aspectDef)
アスペクト定義を指定の位置に追加します。  | 
 void | 
addDestroyMethodDef(DestroyMethodDef methodDef)
destroyメソッド定義を追加します。  | 
 void | 
addInitMethodDef(InitMethodDef methodDef)
initメソッド定義を追加します。  | 
 void | 
addInterTypeDef(InterTypeDef interTypeDef)
インタータイプ定義を追加します。 | 
 void | 
addMetaDef(MetaDef metaDef)
メタデータ定義を追加します。  | 
 void | 
addPropertyDef(PropertyDef propertyDef)
プロパティ定義を追加します。 | 
 void | 
destroy()
コンポーネント定義を破棄します。  | 
 ArgDef | 
getArgDef(int index)
指定されたインデックス番号 indexの引数定義を返します。
  | 
 int | 
getArgDefSize()
登録されている 引数定義の数を返します。 | 
 AspectDef | 
getAspectDef(int index)
指定されたインデックス番号 indexのアスペクト定義を返します。
  | 
 int | 
getAspectDefSize()
登録されている アスペクト定義の数を返します。
  | 
 AutoBindingDef | 
getAutoBindingDef()
自動バインディング定義を返します。  | 
 java.lang.Object | 
getComponent()
定義に基づいてコンポーネントを返します。  | 
 java.lang.Class | 
getComponentClass()
定義上のクラスを返します。  | 
 java.lang.String | 
getComponentName()
コンポーネント名を返します。  | 
 java.lang.Class | 
getConcreteClass()
アスペクト適用後の、 実際にインスタンス化されるコンポーネントのクラスを返します。  | 
 S2Container | 
getContainer()
このコンポーネント定義を含むS2コンテナを返します。  | 
 DestroyMethodDef | 
getDestroyMethodDef(int index)
指定されたインデックス番号 indexのdestroyメソッド定義を返します。
  | 
 int | 
getDestroyMethodDefSize()
destroyメソッド定義の数を返します。 | 
 Expression | 
getExpression()
コンポーネントを生成する式を返します。  | 
 InitMethodDef | 
getInitMethodDef(int index)
指定されたインデックス番号 indexのinitメソッド定義を返します。
  | 
 int | 
getInitMethodDefSize()
登録されている initメソッド定義の数を返します。 | 
 InstanceDef | 
getInstanceDef()
インスタンス定義を返します。  | 
 InterTypeDef | 
getInterTypeDef(int index)
指定されたインデックス番号 indexのインタータイプ定義を返します。 | 
 int | 
getInterTypeDefSize()
登録されている インタータイプ定義の数を返します。 | 
 MetaDef | 
getMetaDef(int index)
インデックス番号 indexで指定されたメタデータ定義を返します。
  | 
 MetaDef | 
getMetaDef(java.lang.String name)
指定したメタデータ定義名で登録されているメタデータ定義を取得します。  | 
 MetaDef[] | 
getMetaDefs(java.lang.String name)
指定したメタデータ定義名で登録されているメタデータ定義を取得します。  | 
 int | 
getMetaDefSize()
メタデータ定義の数を返します。 | 
 PropertyDef | 
getPropertyDef(int index)
指定されたインデックス番号 indexのプロパティ定義を返します。 | 
 PropertyDef | 
getPropertyDef(java.lang.String propertyName)
指定したプロパティ名で登録されている プロパティ定義を返します。 | 
 int | 
getPropertyDefSize()
登録されている プロパティ定義の数を返します。 | 
 boolean | 
hasPropertyDef(java.lang.String propertyName)
指定したプロパティ名のプロパティ定義があれば trueを返します。 | 
 void | 
init()
コンポーネント定義を初期化します。  | 
 void | 
injectDependency(java.lang.Object outerComponent)
外部コンポーネント outerComponentに対し、
 コンポーネント定義に基づいて、 S2コンテナ上のコンポーネントをインジェクションします。 | 
 boolean | 
isExternalBinding()
外部バインディングが有効な場合 trueを返します。
  | 
 void | 
setAutoBindingDef(AutoBindingDef autoBindingDef)
自動バインディング定義を設定します。  | 
 void | 
setComponentName(java.lang.String componentName)
コンポーネント名を設定します。  | 
 void | 
setContainer(S2Container container)
このコンポーネント定義を含むS2コンテナを設定します。  | 
 void | 
setExpression(Expression expression)
コンポーネントを生成する式を設定します。  | 
 void | 
setExternalBinding(boolean externalBinding)
外部バインディングを有効にする場合 trueを設定します。 | 
 void | 
setInstanceDef(InstanceDef instanceDef)
インスタンス定義を設定します。  | 
| クラス java.lang.Object から継承したメソッド | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| コンストラクタの詳細 | 
public SimpleComponentDef()
SimpleComponentDefを作成します。
public SimpleComponentDef(java.lang.Class componentClass)
SimpleComponentDefを作成します。
componentClass - 
public SimpleComponentDef(java.lang.Class componentClass,
                          java.lang.String componentName)
SimpleComponentDefを作成します。
componentClass - componentName - public SimpleComponentDef(java.lang.Object component)
SimpleComponentDefを作成します。
component - 
public SimpleComponentDef(java.lang.Object component,
                          java.lang.Class componentClass)
SimpleComponentDefを作成します。
component - componentClass - 
public SimpleComponentDef(java.lang.Object component,
                          java.lang.String componentName)
SimpleComponentDefを作成します。
component - componentName - 
public SimpleComponentDef(java.lang.Object component,
                          java.lang.Class componentClass,
                          java.lang.String componentName)
SimpleComponentDefを作成します。
component - componentClass - componentName - | メソッドの詳細 | 
public java.lang.Object getComponent()
                              throws TooManyRegistrationRuntimeException
ComponentDef の記述: 
ComponentDef 内の getComponentTooManyRegistrationRuntimeException - コンポーネント定義が重複している場合TooManyRegistrationComponentDefpublic void injectDependency(java.lang.Object outerComponent)
ComponentDef の記述: outerComponentに対し、
 コンポーネント定義に基づいて、 S2コンテナ上のコンポーネントをインジェクションします。
ComponentDef 内の injectDependencyouterComponent - 外部コンポーネントpublic S2Container getContainer()
ComponentDef の記述: 
ComponentDef 内の getContainerpublic void setContainer(S2Container container)
ComponentDef の記述: 
ComponentDef 内の setContainercontainer - S2コンテナpublic java.lang.Class getComponentClass()
ComponentDef の記述: 
 diconファイルの<component>タグにおける、 class属性で指定されたクラスを表します。
 自動バインディングされる際には、 このクラス(インターフェース)が使用されます。
 
ComponentDef 内の getComponentClasspublic java.lang.Class getConcreteClass()
ComponentDef の記述: 
ComponentDef 内の getConcreteClasspublic java.lang.String getComponentName()
ComponentDef の記述: 
ComponentDef 内の getComponentNamepublic void setComponentName(java.lang.String componentName)
ComponentDef の記述: 
ComponentDef 内の setComponentNamecomponentName - コンポーネント名public InstanceDef getInstanceDef()
ComponentDef の記述: 
ComponentDef 内の getInstanceDefpublic void setInstanceDef(InstanceDef instanceDef)
ComponentDef の記述: 
ComponentDef 内の setInstanceDefinstanceDef - インスタンス定義public AutoBindingDef getAutoBindingDef()
ComponentDef の記述: 
ComponentDef 内の getAutoBindingDefpublic void setAutoBindingDef(AutoBindingDef autoBindingDef)
ComponentDef の記述: 
ComponentDef 内の setAutoBindingDefautoBindingDef - 自動バインディング定義public boolean isExternalBinding()
ComponentDef の記述: trueを返します。
 外部バインディングとは、 外部コンテキストにあるオブジェクトを、 指定したコンポーネントの対応するプロパティにバインディングする機能です。
 Webアプリケーションにおいて、 リクエストコンテキストに入力された値を、
 リクエストインスタンスを通して取得し、
 リクエスト間(ページ間)で透過的に引き継ぐ場合などに利用されます。
 
ComponentDef 内の isExternalBindingtrueAbstractPropertyAssembler.bindExternally(BeanDesc,
      ComponentDef, Object, Set)public void setExternalBinding(boolean externalBinding)
ComponentDef の記述: trueを設定します。
ComponentDef 内の setExternalBindingexternalBinding - 外部バインディングを有効にする場合truepublic Expression getExpression()
ComponentDef の記述: 
ComponentDef 内の getExpressionpublic void setExpression(Expression expression)
ComponentDef の記述: 
ComponentDef 内の setExpressionexpression - コンポーネント生成式public void addArgDef(ArgDef constructorArgDef)
ArgDefAware の記述: 
ArgDefAware 内の addArgDefconstructorArgDef - 引数定義public int getArgDefSize()
ArgDefAware の記述: 引数定義の数を返します。
ArgDefAware 内の getArgDefSizepublic ArgDef getArgDef(int index)
ArgDefAware の記述: indexの引数定義を返します。
 インデックス番号は、 登録した順番に 0,1,2,… となります。
ArgDefAware 内の getArgDefindex - 引数定義を指定するインデックス番号
public void addPropertyDef(PropertyDef propertyDef)
PropertyDefAware の記述: プロパティ定義を追加します。
PropertyDefAware 内の addPropertyDefpropertyDef - プロパティ定義public int getPropertyDefSize()
PropertyDefAware の記述: プロパティ定義の数を返します。
PropertyDefAware 内の getPropertyDefSizepublic PropertyDef getPropertyDef(int index)
PropertyDefAware の記述: indexのプロパティ定義を返します。
PropertyDefAware 内の getPropertyDefindex - プロパティ定義を指定するインデックス番号
public boolean hasPropertyDef(java.lang.String propertyName)
PropertyDefAware の記述: trueを返します。
PropertyDefAware 内の hasPropertyDefpropertyName - プロパティ名
true、存在していなければfalsepublic PropertyDef getPropertyDef(java.lang.String propertyName)
PropertyDefAware の記述: プロパティ定義を返します。
PropertyDefAware 内の getPropertyDefpropertyName - プロパティ名
public void addInitMethodDef(InitMethodDef methodDef)
InitMethodDefAware の記述: 
InitMethodDefAware 内の addInitMethodDefmethodDef - initメソッド定義public int getInitMethodDefSize()
InitMethodDefAware の記述: initメソッド定義の数を返します。
InitMethodDefAware 内の getInitMethodDefSizepublic InitMethodDef getInitMethodDef(int index)
InitMethodDefAware の記述: indexのinitメソッド定義を返します。
 インデックス番号は、 登録した順番に 0,1,2,… となります。
InitMethodDefAware 内の getInitMethodDefindex - initメソッド定義を指定するインデックス番号
public void addDestroyMethodDef(DestroyMethodDef methodDef)
DestroyMethodDefAware の記述: 
DestroyMethodDefAware 内の addDestroyMethodDefmethodDef - destroyメソッド定義public int getDestroyMethodDefSize()
DestroyMethodDefAware の記述: destroyメソッド定義の数を返します。
DestroyMethodDefAware 内の getDestroyMethodDefSizepublic DestroyMethodDef getDestroyMethodDef(int index)
DestroyMethodDefAware の記述: indexのdestroyメソッド定義を返します。
 インデックス番号は、 追加した順番に 0,1,2,… となります。
DestroyMethodDefAware 内の getDestroyMethodDefindex - destroyメソッド定義を指定するインデックス番号
public void addAspectDef(AspectDef aspectDef)
AspectDefAware の記述: 
AspectDefAware 内の addAspectDefaspectDef - アスペクト定義
public void addAspectDef(int index,
                         AspectDef aspectDef)
AspectDefAware の記述: 
AspectDefAware 内の addAspectDefindex - アスペクト定義を追加する位置aspectDef - アスペクト定義public int getAspectDefSize()
AspectDefAware の記述: アスペクト定義の数を返します。
 
 登録されているインターセプタの数ではなく、
 アスペクト定義の数を返します。 アスペクト定義のコンポーネント(インターセプタ)のクラスが
 InterceptorChainで、
 その中に複数のインターセプタが含まれる場合も、 1つのアスペクト定義としてカウントします。
 
AspectDefAware 内の getAspectDefSizepublic AspectDef getAspectDef(int index)
AspectDefAware の記述: indexのアスペクト定義を返します。
 インデックス番号は、 登録した順番に 0,1,2,… となります。
AspectDefAware 内の getAspectDefindex - アスペクト定義を指定するインデックス番号
public void addInterTypeDef(InterTypeDef interTypeDef)
InterTypeDefAware の記述: インタータイプ定義を追加します。
InterTypeDefAware 内の addInterTypeDefinterTypeDef - インタータイプ定義public int getInterTypeDefSize()
InterTypeDefAware の記述: インタータイプ定義の数を返します。
InterTypeDefAware 内の getInterTypeDefSizepublic InterTypeDef getInterTypeDef(int index)
InterTypeDefAware の記述: indexのインタータイプ定義を返します。
InterTypeDefAware 内の getInterTypeDefindex - インタータイプ定義を指定するインデックス番号
public void addMetaDef(MetaDef metaDef)
MetaDefAware の記述: 
MetaDefAware 内の addMetaDefmetaDef - メタデータ定義public int getMetaDefSize()
MetaDefAware の記述: メタデータ定義の数を返します。
MetaDefAware 内の getMetaDefSizepublic MetaDef getMetaDef(int index)
MetaDefAware の記述: indexで指定されたメタデータ定義を返します。
 インデックス番号は、追加した順に0, 1, 2…となります。
MetaDefAware 内の getMetaDefindex - メタデータ定義を指定するインデックス番号
public MetaDef getMetaDef(java.lang.String name)
MetaDefAware の記述: nullを返します。
MetaDefAware 内の getMetaDefname - メタデータ定義名
public MetaDef[] getMetaDefs(java.lang.String name)
MetaDefAware の記述: 
MetaDefAware 内の getMetaDefsname - メタデータ定義名
public void init()
ComponentDef の記述: 
 コンポーネントインスタンス定義がsingletonの場合には、
 アスペクトを適用したインスタンスの生成、 配備、 プロパティ設定の後に、
 initMethodが呼ばれます。
 
ComponentDef 内の initSingletonComponentDeployer.init()public void destroy()
ComponentDef の記述: 
 コンポーネントインスタンス定義がsingletonの場合には、
 destroyMethodが呼ばれます。
 
ComponentDef 内の destroySingletonComponentDeployer.destroy()
  | 
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||