|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.framework.container.impl.ComponentDefImpl
| フィールドの概要 |
| インタフェース org.seasar.framework.container.ContainerConstants から継承したフィールド |
APPLICATION_SCOPE, COMPONENT_DEF_NAME, CONFIG_NAME, CONTAINER_NAME, COOKIE, HEADER, HEADER_VALUES, INIT_PARAM, NS_SEP, NS_SEP_STR, PACKAGE_SEP, PARAM, PARAM_VALUES, REQUEST_NAME, REQUEST_SCOPE, RESPONSE_NAME, SERVLET_CONTEXT_NAME, SESSION_NAME, SESSION_SCOPE |
| コンストラクタの概要 | |
ComponentDefImpl()
|
|
ComponentDefImpl(Class componentClass)
|
|
ComponentDefImpl(Class componentClass,
String componentName)
|
|
| メソッドの概要 | |
void |
addArgDef(ArgDef argDef)
引数定義を追加します。 |
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()
自動バインディング定義を返します。 |
Object |
getComponent()
定義に基づいてコンポーネントを返します。 |
Class |
getComponentClass()
定義上のクラスを返します。 |
ComponentDeployer |
getComponentDeployer()
|
String |
getComponentName()
コンポーネント名を返します。 |
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(String name)
指定したメタデータ定義名で登録されているメタデータ定義を取得します。 |
MetaDef[] |
getMetaDefs(String name)
指定したメタデータ定義名で登録されているメタデータ定義を取得します。 |
int |
getMetaDefSize()
メタデータ定義の数を返します。 |
PropertyDef |
getPropertyDef(int index)
指定されたインデックス番号 indexのプロパティ定義を返します。 |
PropertyDef |
getPropertyDef(String propertyName)
指定したプロパティ名で登録されている プロパティ定義を返します。 |
int |
getPropertyDefSize()
登録されている プロパティ定義の数を返します。 |
boolean |
hasPropertyDef(String propertyName)
指定したプロパティ名のプロパティ定義があれば trueを返します。 |
void |
init()
コンポーネント定義を初期化します。 |
void |
injectDependency(Object outerComponent)
外部コンポーネント outerComponentに対し、
コンポーネント定義に基づいて、 S2コンテナ上のコンポーネントをインジェクションします。 |
boolean |
isExternalBinding()
外部バインディングが有効な場合 trueを返します。
|
void |
setAutoBindingDef(AutoBindingDef autoBindingDef)
自動バインディング定義を設定します。 |
void |
setComponentName(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 ComponentDefImpl()
public ComponentDefImpl(Class componentClass)
public ComponentDefImpl(Class componentClass,
String componentName)
| メソッドの詳細 |
public Object getComponent()
ComponentDef の記述:
ComponentDef 内の getComponentComponentDef.getComponent()public void injectDependency(Object outerComponent)
ComponentDef の記述: outerComponentに対し、
コンポーネント定義に基づいて、 S2コンテナ上のコンポーネントをインジェクションします。
ComponentDef 内の injectDependencyouterComponent - 外部コンポーネントComponentDef.injectDependency(java.lang.Object)public Class getComponentClass()
ComponentDef の記述:
diconファイルの<component>タグにおける、 class属性で指定されたクラスを表します。
自動バインディングされる際には、 このクラス(インターフェース)が使用されます。
ComponentDef 内の getComponentClassComponentDef.getComponentClass()public String getComponentName()
ComponentDef の記述:
ComponentDef 内の getComponentNameComponentDef.getComponentName()public void setComponentName(String componentName)
ComponentDef の記述:
ComponentDef 内の setComponentNamecomponentName - コンポーネント名ComponentDef.setComponentName(java.lang.String)public Class getConcreteClass()
ComponentDef の記述:
ComponentDef 内の getConcreteClassComponentDef.getConcreteClass()public S2Container getContainer()
ComponentDef の記述:
ComponentDef 内の getContainerComponentDef.getContainer()public void setContainer(S2Container container)
ComponentDef の記述:
ComponentDef 内の setContainercontainer - S2コンテナComponentDef.setContainer(org.seasar.framework.container.S2Container)public void addArgDef(ArgDef argDef)
ArgDefAware の記述:
ArgDefAware 内の addArgDefargDef - 引数定義ArgDefAware.addArgDef(org.seasar.framework.container.ArgDef)public void addPropertyDef(PropertyDef propertyDef)
PropertyDefAware の記述: プロパティ定義を追加します。
PropertyDefAware 内の addPropertyDefpropertyDef - プロパティ定義PropertyDefAware.addPropertyDef(org.seasar.framework.container.PropertyDef)public void addInitMethodDef(InitMethodDef methodDef)
InitMethodDefAware の記述:
InitMethodDefAware 内の addInitMethodDefmethodDef - initメソッド定義InitMethodDefAware.addInitMethodDef(org.seasar.framework.container.InitMethodDef)public void addDestroyMethodDef(DestroyMethodDef methodDef)
DestroyMethodDefAware の記述:
DestroyMethodDefAware 内の addDestroyMethodDefmethodDef - destroyメソッド定義DestroyMethodDefAware.addDestroyMethodDef(org.seasar.framework.container.DestroyMethodDef)public void addAspectDef(AspectDef aspectDef)
AspectDefAware の記述:
AspectDefAware 内の addAspectDefaspectDef - アスペクト定義AspectDefAware.addAspectDef(org.seasar.framework.container.AspectDef)
public void addAspectDef(int index,
AspectDef aspectDef)
AspectDefAware の記述:
AspectDefAware 内の addAspectDefindex - アスペクト定義を追加する位置aspectDef - アスペクト定義AspectDefAware.addAspectDef(int,
org.seasar.framework.container.AspectDef)public void addInterTypeDef(InterTypeDef interTypeDef)
InterTypeDefAware の記述: インタータイプ定義を追加します。
InterTypeDefAware 内の addInterTypeDefinterTypeDef - インタータイプ定義InterTypeDefAware.addInterTypeDef(org.seasar.framework.container.InterTypeDef)public int getArgDefSize()
ArgDefAware の記述: 引数定義の数を返します。
ArgDefAware 内の getArgDefSizeArgDefAware.getArgDefSize()public int getPropertyDefSize()
PropertyDefAware の記述: プロパティ定義の数を返します。
PropertyDefAware 内の getPropertyDefSizePropertyDefAware.getPropertyDefSize()public int getInitMethodDefSize()
InitMethodDefAware の記述: initメソッド定義の数を返します。
InitMethodDefAware 内の getInitMethodDefSizeInitMethodDefAware.getInitMethodDefSize()public int getDestroyMethodDefSize()
DestroyMethodDefAware の記述: destroyメソッド定義の数を返します。
DestroyMethodDefAware 内の getDestroyMethodDefSizeDestroyMethodDefAware.getDestroyMethodDefSize()public int getAspectDefSize()
AspectDefAware の記述: アスペクト定義の数を返します。
登録されているインターセプタの数ではなく、
アスペクト定義の数を返します。 アスペクト定義のコンポーネント(インターセプタ)のクラスが
InterceptorChainで、
その中に複数のインターセプタが含まれる場合も、 1つのアスペクト定義としてカウントします。
AspectDefAware 内の getAspectDefSizeAspectDefAware.getAspectDefSize()public int getInterTypeDefSize()
InterTypeDefAware の記述: インタータイプ定義の数を返します。
InterTypeDefAware 内の getInterTypeDefSizeInterTypeDefAware.getInterTypeDefSize()public InstanceDef getInstanceDef()
ComponentDef の記述:
ComponentDef 内の getInstanceDefpublic void setInstanceDef(InstanceDef instanceDef)
ComponentDef の記述:
ComponentDef 内の setInstanceDefinstanceDef - インスタンス定義public AutoBindingDef getAutoBindingDef()
ComponentDef の記述:
ComponentDef 内の getAutoBindingDefComponentDef.getAutoBindingDef()public void setAutoBindingDef(AutoBindingDef autoBindingDef)
ComponentDef の記述:
ComponentDef 内の setAutoBindingDefautoBindingDef - 自動バインディング定義ComponentDef.setAutoBindingDef(org.seasar.framework.container.AutoBindingDef)public void init()
ComponentDef の記述:
コンポーネントインスタンス定義がsingletonの場合には、
アスペクトを適用したインスタンスの生成、 配備、 プロパティ設定の後に、
initMethodが呼ばれます。
ComponentDef 内の initComponentDef.init()public void destroy()
ComponentDef の記述:
コンポーネントインスタンス定義がsingletonの場合には、
destroyMethodが呼ばれます。
ComponentDef 内の destroyComponentDef.destroy()public Expression getExpression()
ComponentDef の記述:
ComponentDef 内の getExpressionComponentDef.getExpression()public void setExpression(Expression expression)
ComponentDef の記述:
ComponentDef 内の setExpressionexpression - コンポーネント生成式org.seasar.framework.container.ComponentDef#setExpression(java.lang.String)public ArgDef getArgDef(int index)
ArgDefAware の記述: indexの引数定義を返します。
インデックス番号は、 登録した順番に 0,1,2,… となります。
ArgDefAware 内の getArgDefindex - 引数定義を指定するインデックス番号
ArgDefAware.getArgDef(int)public PropertyDef getPropertyDef(int index)
PropertyDefAware の記述: indexのプロパティ定義を返します。
PropertyDefAware 内の getPropertyDefindex - プロパティ定義を指定するインデックス番号
PropertyDefAware.getPropertyDef(int)public PropertyDef getPropertyDef(String propertyName)
PropertyDefAware の記述: プロパティ定義を返します。
PropertyDefAware 内の getPropertyDefpropertyName - プロパティ名
PropertyDefAware.getPropertyDef(java.lang.String)public boolean hasPropertyDef(String propertyName)
PropertyDefAware の記述: trueを返します。
PropertyDefAware 内の hasPropertyDefpropertyName - プロパティ名
true、存在していなければfalsePropertyDefAware.hasPropertyDef(java.lang.String)public InitMethodDef getInitMethodDef(int index)
InitMethodDefAware の記述: indexのinitメソッド定義を返します。
インデックス番号は、 登録した順番に 0,1,2,… となります。
InitMethodDefAware 内の getInitMethodDefindex - initメソッド定義を指定するインデックス番号
InitMethodDefAware.getInitMethodDef(int)public DestroyMethodDef getDestroyMethodDef(int index)
DestroyMethodDefAware の記述: indexのdestroyメソッド定義を返します。
インデックス番号は、 追加した順番に 0,1,2,… となります。
DestroyMethodDefAware 内の getDestroyMethodDefindex - destroyメソッド定義を指定するインデックス番号
DestroyMethodDefAware.getDestroyMethodDef(int)public AspectDef getAspectDef(int index)
AspectDefAware の記述: indexのアスペクト定義を返します。
インデックス番号は、 登録した順番に 0,1,2,… となります。
AspectDefAware 内の getAspectDefindex - アスペクト定義を指定するインデックス番号
AspectDefAware.getAspectDef(int)public InterTypeDef getInterTypeDef(int index)
InterTypeDefAware の記述: indexのインタータイプ定義を返します。
InterTypeDefAware 内の getInterTypeDefindex - インタータイプ定義を指定するインデックス番号
InterTypeDefAware.getInterTypeDef(int)public void addMetaDef(MetaDef metaDef)
MetaDefAware の記述:
MetaDefAware 内の addMetaDefmetaDef - メタデータ定義MetaDefAware.addMetaDef(org.seasar.framework.container.MetaDef)public MetaDef getMetaDef(int index)
MetaDefAware の記述: indexで指定されたメタデータ定義を返します。
インデックス番号は、追加した順に0, 1, 2…となります。
MetaDefAware 内の getMetaDefindex - メタデータ定義を指定するインデックス番号
MetaDefAware.getMetaDef(int)public MetaDef getMetaDef(String name)
MetaDefAware の記述: nullを返します。
MetaDefAware 内の getMetaDefname - メタデータ定義名
MetaDefAware.getMetaDef(java.lang.String)public MetaDef[] getMetaDefs(String name)
MetaDefAware の記述:
MetaDefAware 内の getMetaDefsname - メタデータ定義名
MetaDefAware.getMetaDefs(java.lang.String)public int getMetaDefSize()
MetaDefAware の記述: メタデータ定義の数を返します。
MetaDefAware 内の getMetaDefSizeMetaDefAware.getMetaDefSize()public ComponentDeployer getComponentDeployer()
public boolean isExternalBinding()
ComponentDef の記述: trueを返します。
外部バインディングとは、 外部コンテキストにあるオブジェクトを、 指定したコンポーネントの対応するプロパティにバインディングする機能です。
Webアプリケーションにおいて、 リクエストコンテキストに入力された値を、
リクエストインスタンスを通して取得し、
リクエスト間(ページ間)で透過的に引き継ぐ場合などに利用されます。
ComponentDef 内の isExternalBindingtrueAbstractPropertyAssembler.bindExternally(BeanDesc,
ComponentDef, Object, Set)public void setExternalBinding(boolean externalBinding)
ComponentDef の記述: trueを設定します。
ComponentDef 内の setExternalBindingexternalBinding - 外部バインディングを有効にする場合true
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||