|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.container.impl.SimpleComponentDef
コンストラクタの概要 | |
SimpleComponentDef()
|
|
SimpleComponentDef(Class componentClass)
|
|
SimpleComponentDef(Class componentClass,
String componentName)
|
|
SimpleComponentDef(Object component)
|
|
SimpleComponentDef(Object component,
Class componentClass)
|
|
SimpleComponentDef(Object component,
Class componentClass,
String componentName)
|
|
SimpleComponentDef(Object component,
String componentName)
|
メソッドの概要 | |
void |
addArgDef(ArgDef constructorArgDef)
|
void |
addAspectDef(AspectDef aspectDef)
アスペクト定義を登録(追加)します。 |
void |
addDestroyMethodDef(DestroyMethodDef methodDef)
destroyメソッド定義を登録(追加)します。 |
void |
addInitMethodDef(InitMethodDef methodDef)
|
void |
addInterTypeDef(InterTypeDef interTypeDef)
|
void |
addMetaDef(MetaDef metaDef)
|
void |
addPropertyDef(PropertyDef propertyDef)
プロパティ定義 を登録(追加)します。 |
void |
destroy()
コンポーネント定義を破棄します。 |
ArgDef |
getArgDef(int index)
|
int |
getArgDefSize()
|
AspectDef |
getAspectDef(int index)
指定されたインデックス番号 index のアスペクト定義を返します。
|
int |
getAspectDefSize()
登録されている アスペクト定義 の数を返します。
|
AutoBindingDef |
getAutoBindingDef()
自動バインディング定義を返します。 |
Object |
getComponent()
定義に基づいてコンポーネントを返します。 |
Class |
getComponentClass()
定義上のクラスを返します。 |
String |
getComponentName()
コンポーネント名を返します。 |
Class |
getConcreteClass()
アスペクト適用後の、 実際にインスタンス化されるコンポーネントのクラスを返します。 |
S2Container |
getContainer()
このコンポーネント定義を含むS2コンテナを返します。 |
DestroyMethodDef |
getDestroyMethodDef(int index)
指定されたインデックス番号 index のdestroyメソッド定義を返します。
|
int |
getDestroyMethodDefSize()
登録されている destroyメソッド定義 の数を返します。 |
Expression |
getExpression()
コンポーネントを生成する式を返します。 |
InitMethodDef |
getInitMethodDef(int index)
|
int |
getInitMethodDefSize()
|
InstanceDef |
getInstanceDef()
インスタンス定義を返します。 |
InterTypeDef |
getInterTypeDef(int index)
|
int |
getInterTypeDefSize()
|
MetaDef |
getMetaDef(int 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 SimpleComponentDef()
public SimpleComponentDef(Class componentClass)
public SimpleComponentDef(Class componentClass, String componentName)
public SimpleComponentDef(Object component)
public SimpleComponentDef(Object component, Class componentClass)
public SimpleComponentDef(Object component, String componentName)
public SimpleComponentDef(Object component, Class componentClass, String componentName)
メソッドの詳細 |
public Object getComponent() throws TooManyRegistrationRuntimeException
ComponentDef
の記述:
ComponentDef
内の getComponent
TooManyRegistrationRuntimeException
- コンポーネント定義が重複している場合TooManyRegistrationComponentDef
public void injectDependency(Object outerComponent)
ComponentDef
の記述: outerComponent
に対し、
コンポーネント定義
に基づいて、 S2コンテナ上のコンポーネントをインジェクションします。
ComponentDef
内の injectDependency
outerComponent
- 外部コンポーネントpublic S2Container getContainer()
ComponentDef
の記述:
ComponentDef
内の getContainer
public void setContainer(S2Container container)
ComponentDef
の記述:
ComponentDef
内の setContainer
container
- S2コンテナpublic Class getComponentClass()
ComponentDef
の記述: <component/>
タグにおける、
class
属性で指定されたクラスを表します。 自動バインディングされる際には、
このクラス(インターフェース)が使用されます。
ComponentDef
内の getComponentClass
public String getComponentName()
ComponentDef
の記述:
ComponentDef
内の getComponentName
public void setComponentName(String componentName)
ComponentDef
の記述:
ComponentDef
内の setComponentName
componentName
- コンポーネント名public Class getConcreteClass()
ComponentDef
の記述:
ComponentDef
内の getConcreteClass
public void addArgDef(ArgDef constructorArgDef)
ArgDefAware
内の addArgDef
public void addPropertyDef(PropertyDef propertyDef)
PropertyDefAware
の記述: プロパティ定義
を登録(追加)します。
PropertyDefAware
内の addPropertyDef
propertyDef
- プロパティ定義public void addInitMethodDef(InitMethodDef methodDef)
InitMethodDefAware
内の addInitMethodDef
public void addDestroyMethodDef(DestroyMethodDef methodDef)
DestroyMethodDefAware
の記述:
DestroyMethodDefAware
内の addDestroyMethodDef
methodDef
- destroyメソッド定義public void addAspectDef(AspectDef aspectDef)
AspectDefAware
の記述:
AspectDefAware
内の addAspectDef
aspectDef
- アスペクト定義public void addInterTypeDef(InterTypeDef interTypeDef)
InterTypeDefAware
内の addInterTypeDef
public int getArgDefSize()
ArgDefAware
内の getArgDefSize
public int getPropertyDefSize()
PropertyDefAware
の記述: プロパティ定義
の数を返します。
PropertyDefAware
内の getPropertyDefSize
public int getInitMethodDefSize()
InitMethodDefAware
内の getInitMethodDefSize
public int getDestroyMethodDefSize()
DestroyMethodDefAware
の記述: destroyメソッド定義
の数を返します。
DestroyMethodDefAware
内の getDestroyMethodDefSize
public int getAspectDefSize()
AspectDefAware
の記述: アスペクト定義
の数を返します。
登録されているインターセプタ
の数ではなく、
アスペクト定義の数を返します。 アスペクト定義のコンポーネント(インターセプタ)のクラスが
InterceptorChain
で、
その中に複数のインターセプタが含まれる場合も、 1つのアスペクト定義としてカウントします。
AspectDefAware
内の getAspectDefSize
public int getInterTypeDefSize()
InterTypeDefAware
内の getInterTypeDefSize
public ArgDef getArgDef(int index)
ArgDefAware
内の getArgDef
public PropertyDef getPropertyDef(int index)
PropertyDefAware
の記述: index
のプロパティ定義
を返します。
PropertyDefAware
内の getPropertyDef
index
- プロパティ定義を指定するインデックス番号
public PropertyDef getPropertyDef(String propertyName)
PropertyDefAware
の記述: プロパティ定義
を返します。
PropertyDefAware
内の getPropertyDef
propertyName
- プロパティ名
public boolean hasPropertyDef(String propertyName)
PropertyDefAware
の記述: true
を返します。
PropertyDefAware
内の hasPropertyDef
propertyName
- プロパティ定義
true
、存在していなければfalse
public InitMethodDef getInitMethodDef(int index)
InitMethodDefAware
内の getInitMethodDef
public DestroyMethodDef getDestroyMethodDef(int index)
DestroyMethodDefAware
の記述: index
のdestroyメソッド定義を返します。
インデックス番号は、 登録した順番に 0,1,2,… となります。
DestroyMethodDefAware
内の getDestroyMethodDef
index
- destroyメソッド定義を指定するインデックス番号
public AspectDef getAspectDef(int index)
AspectDefAware
の記述: index
のアスペクト定義を返します。
インデックス番号は、 登録した順番に 0,1,2,… となります。
AspectDefAware
内の getAspectDef
index
- アスペクト定義を指定するインデックス番号
public InterTypeDef getInterTypeDef(int index)
InterTypeDefAware
内の getInterTypeDef
public void addMetaDef(MetaDef metaDef)
MetaDefAware
内の addMetaDef
public MetaDef getMetaDef(int index)
MetaDefAware
内の getMetaDef
public MetaDef getMetaDef(String name)
MetaDefAware
内の getMetaDef
public MetaDef[] getMetaDefs(String name)
MetaDefAware
内の getMetaDefs
public int getMetaDefSize()
MetaDefAware
内の getMetaDefSize
public Expression getExpression()
ComponentDef
の記述:
ComponentDef
内の getExpression
public void setExpression(Expression expression)
ComponentDef
の記述:
ComponentDef
内の setExpression
public InstanceDef getInstanceDef()
ComponentDef
の記述:
ComponentDef
内の getInstanceDef
public void setInstanceDef(InstanceDef instanceDef)
ComponentDef
の記述:
ComponentDef
内の setInstanceDef
instanceDef
- インスタンス定義public AutoBindingDef getAutoBindingDef()
ComponentDef
の記述:
ComponentDef
内の getAutoBindingDef
public void setAutoBindingDef(AutoBindingDef autoBindingDef)
ComponentDef
の記述:
ComponentDef
内の setAutoBindingDef
autoBindingDef
- 自動バインディング定義public boolean isExternalBinding()
ComponentDef
の記述: true
を返します。
外部バインディングとは、 外部コンテキストにあるオブジェクトを、 指定したコンポーネントの対応するプロパティにバインディングする機能です。
Webアプリケーションにおいて、 リクエスト
コンテキストに入力された値を、
リクエストインスタンス
を通して取得し、
リクエスト間(ページ間)で透過的に引き継ぐ場合などに利用されます。
ComponentDef
内の isExternalBinding
true
AbstractPropertyAssembler.bindExternally(BeanDesc,
ComponentDef, Object, Set)
public void setExternalBinding(boolean externalBinding)
ComponentDef
の記述: true
を設定します。
ComponentDef
内の setExternalBinding
externalBinding
- 外部バインディングを有効にする場合true
public void init()
ComponentDef
の記述:
コンポーネントインスタンス定義
がsingleton
の場合には、
アスペクト
を適用したインスタンスの生成、 配備、 プロパティ設定の後に、
initMethod
が呼ばれます。
ComponentDef
内の init
SingletonComponentDeployer.init()
public void destroy()
ComponentDef
の記述:
コンポーネントインスタンス定義
がsingleton
の場合には、
destroyMethod
が呼ばれます。
ComponentDef
内の destroy
SingletonComponentDeployer.destroy()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |