|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.remoting.axis.deployer.AxisDeployer
diconファイル中に記述されたコンポーネントをAxisにデプロイします。
フィールドの概要 | |
protected org.seasar.framework.container.S2Container |
container
|
protected java.lang.ThreadLocal |
context
|
protected ItemDeployer |
handlerDeployer
|
protected static java.util.regex.Pattern |
META_NAME_PATTERN
<meta> 要素の name
属性に指定される名前を取得するための正規表現です。 |
protected ItemDeployer |
serviceDeployer
|
protected javax.servlet.ServletContext |
servletContext
|
protected ItemDeployer |
wsddDeployer
|
コンストラクタの概要 | |
AxisDeployer()
|
メソッドの概要 | |
void |
deploy()
コンテナに登録されているサービスやハンドラをデプロイします。 |
protected void |
forEach(org.seasar.framework.container.S2Container container)
コンテナの階層をたどって全てのコンテナとコンポーネント定義を走査します。 |
protected org.apache.axis.deployment.wsdd.WSDDDeployment |
getDeployment(org.seasar.framework.container.S2Container container)
WSDDデプロイメントを返します。 |
protected org.apache.axis.AxisEngine |
getEngine()
Axisエンジンを返します。 |
protected org.apache.axis.AxisEngine |
getEngine(org.seasar.framework.container.S2Container container)
Axisエンジンを返します。 |
protected java.lang.String |
getLocalName(org.seasar.framework.container.MetaDef metaDef)
メタデータの名前がS2Axisで使用する接頭辞で始まっていれば、接頭辞の後ろのローカル名を返します。 |
protected org.seasar.framework.container.MetaDef |
getMetaDef(org.seasar.framework.container.MetaDefAware metaDefSupport,
java.lang.String localName)
S2Container または ComponentDef が名前
"axis-localName の <meta>
要素を持っていれば、その MetaDef を返します。 |
protected org.seasar.framework.container.MetaDef[] |
getMetaDefs(org.seasar.framework.container.MetaDefAware metaDefSupport,
java.lang.String localName)
S2Container または ComponentDef が名前
"axis-localName の <meta>
要素を持っていれば、その MetaDef を全て返します。 |
protected void |
process(org.seasar.framework.container.ComponentDef componentDef)
コンポーネント定義にS2Axisのメタデータ <meta name="axis-service">
または <meta name="axis-handler">
が指定されていれば、そのコンポーネントをサービスまたはハンドラとしてAxisにデプロイします。 |
protected void |
process(org.seasar.framework.container.S2Container container)
S2コンテナにS2Axisのメタデータ <meta name="axis-deploy">
が指定されていれば、そのWSDDをAxisにデプロイします。 |
void |
setContainer(org.seasar.framework.container.S2Container container)
S2コンテナを設定します。 |
void |
setServletContext(javax.servlet.ServletContext servletContext)
サーブレットコンテキストを設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final java.util.regex.Pattern META_NAME_PATTERN
<meta>
要素の name
属性に指定される名前を取得するための正規表現です。 axis-
の後にローカル名が続きます。 s2-axis:
も使えるようにしています。
protected org.seasar.framework.container.S2Container container
protected javax.servlet.ServletContext servletContext
protected ItemDeployer serviceDeployer
protected ItemDeployer handlerDeployer
protected ItemDeployer wsddDeployer
protected java.lang.ThreadLocal context
コンストラクタの詳細 |
public AxisDeployer()
メソッドの詳細 |
public void setContainer(org.seasar.framework.container.S2Container container)
container
- S2コンテナpublic void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- サーブレットコンテキストpublic void deploy()
org.seasar.remoting.common.deployer.Deployer
内の deploy
protected void forEach(org.seasar.framework.container.S2Container container)
container
- 起点となるコンテナprotected void process(org.seasar.framework.container.S2Container container)
<meta name="axis-deploy">
が指定されていれば、そのWSDDをAxisにデプロイします。
container
- S2コンテナprotected void process(org.seasar.framework.container.ComponentDef componentDef)
<meta name="axis-service">
または <meta name="axis-handler">
が指定されていれば、そのコンポーネントをサービスまたはハンドラとしてAxisにデプロイします。
componentDef
- コンポーネント定義protected org.apache.axis.deployment.wsdd.WSDDDeployment getDeployment(org.seasar.framework.container.S2Container container)
container
- コンテナ
protected org.apache.axis.AxisEngine getEngine()
protected org.apache.axis.AxisEngine getEngine(org.seasar.framework.container.S2Container container)
axis-engine
を持つ
<meta>
要素が指定されていれば、その内容文字列から次のように決定されます。
"default"
が指定されたものとしてAxisエンジンを決定します。"default"
"default-server"
、そうでなければ
"default-client"
が指定されたものとしてAxisエンジンを決定します。"default-client"
javax.xml.rpc.Service
を実装したコンポーネントを取得し、そのエンジンを使用します。"default-server"
S2AxisConstants.AXIS_SERVLET
と
S2AxisConstants.ATTR_AXIS_ENGINE
を連結した文字列をキーとして
サーブレットコンテキストからAxisエンジンを取得します。 "servlet:"
で始まる文字列"servlet:"
の後ろの文字列をキーとしてサーブレットコンテキストから
取得したAxisエンジンを使用します。
"s2:"
で始まる文字列"s2:"
の後ろの文字列をキーとしてS2コンテナから
取得したコンポーネントをAxisエンジンを使用します。
container
- コンテナ
protected org.seasar.framework.container.MetaDef getMetaDef(org.seasar.framework.container.MetaDefAware metaDefSupport, java.lang.String localName)
S2Container
または ComponentDef
が名前
"axis-localName
の <meta>
要素を持っていれば、その MetaDef
を返します。 S2Container
または ComponentDef
に該当する
メタデータが複数定義されている場合は最初に見つかったメタデータを返します。
metaDefSupport
- S2Container
または ComponentDef
localName
- 接頭辞 axis-
に続くメタデータの名前
MetaDef
。存在しない場合は null
protected org.seasar.framework.container.MetaDef[] getMetaDefs(org.seasar.framework.container.MetaDefAware metaDefSupport, java.lang.String localName)
S2Container
または ComponentDef
が名前
"axis-localName
の <meta>
要素を持っていれば、その MetaDef
を全て返します。
metaDefSupport
- S2Container
または ComponentDef
localName
- 接頭辞 axis-
に続くメタデータの名前
MetaDef
の配列protected java.lang.String getLocalName(org.seasar.framework.container.MetaDef metaDef)
metaDef
- メタデータ定義
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |