|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.jca.deploy.impl.AbstractDeployer<ResourceAdapter>
org.seasar.jca.deploy.impl.AbstractResourceAdapterDeployer
public abstract class AbstractResourceAdapterDeployer
リソースアダプタをデプロイする抽象クラスです.
| 入れ子のクラスの概要 | |
|---|---|
static class |
AbstractResourceAdapterDeployer.JarFileFilter
拡張子が .jarのファイルを選択するFilenameFilterです. |
| フィールドの概要 | |
|---|---|
protected BootstrapContext |
bc
ブートストラップ・コンテキスト |
protected static String |
META_INF_RA_XML
ra.xmlファイルのパス名 |
protected String |
path
RARファイルのパス |
protected ResourceAdapter |
ra
リソースアダプタ |
protected ResourceAdapterConfig |
raConfig
リソースアダプタのコンフィグレーション |
| クラス org.seasar.jca.deploy.impl.AbstractDeployer から継承されたフィールド |
|---|
cl, configProperties, LINE_SEPARATOR, PARAMETER_TYPE |
| コンストラクタの概要 | |
|---|---|
protected |
AbstractResourceAdapterDeployer()
インスタンスを構築します. |
protected |
AbstractResourceAdapterDeployer(int numThreads)
デフォルトのブートストラップコンテキストでインスタンスを構築します. |
| メソッドの概要 | |
|---|---|
protected ClassLoader |
createClassLoader()
設定されたJarファイルをクラスパスとして持つクラスローダを作成します. |
protected ResourceAdapter |
createResourceAdapter()
リソースアダプタを作成してプロパティを設定します. |
protected SaxHandlerParser |
createSaxHandlerParser()
SAXハンドラ・パーザを作成します. |
BootstrapContext |
getBootstrapContext()
ブートストラップコンテキストを返します. |
protected abstract InputStream |
getDeploymentDescripterAsInputStream()
デプロイメント・ディスクリプタを読み込むためのバイトストリームを返します. |
protected abstract File[] |
getJarFiles()
リソースアダプタが持つJarファイルの配列を返します. |
String |
getPath()
リソースアダプタのパスを返します. |
ResourceAdapter |
getResourceAdapter()
リソースアダプタを返します. |
ResourceAdapterConfig |
getResourceAdapterConfig()
リソースアダプタの構成を返します. |
protected void |
loadDeploymentDescripter()
デプロイメント・ディスクリプタを読み込みます. |
protected void |
loggingConnectionDefinition(StringBuilder buf,
OutboundAdapterConfig outboundConfig)
outboundなアダプタ構成のデプロイ情報をログ出力する文字列を作成します. |
protected void |
loggingDeployedMessage()
リソースアダプタをデプロイした情報をログに出力します. |
protected void |
loggingOutboundResourceAdapter(StringBuilder buf)
outboundなリソースアダプタのデプロイ情報をログ出力する文字列を作成します. |
void |
setBootstrapContext(BootstrapContext bc)
ブートストラップ・コンテキストを設定します. |
void |
setPath(String path)
リソースアダプタのパスを設定します. |
void |
start()
リソースアダプタをデプロイします. |
void |
stop()
リソースアダプタをアンデプロイします. |
protected URL[] |
toURL(File[] jars)
ファイルの配列をURLの配列に変換して返します. |
| クラス org.seasar.jca.deploy.impl.AbstractDeployer から継承されたメソッド |
|---|
applyProperties, applyProperty, getClassLoader, loggingConfigProperties, setClassLoader, setProperty, setProperty, setProperty |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.seasar.jca.deploy.ResourceAdapterDeployer から継承されたメソッド |
|---|
getClassLoader |
| フィールドの詳細 |
|---|
protected static final String META_INF_RA_XML
ra.xmlファイルのパス名
protected BootstrapContext bc
protected String path
protected ResourceAdapter ra
protected ResourceAdapterConfig raConfig
| コンストラクタの詳細 |
|---|
protected AbstractResourceAdapterDeployer()
このコンストラクタで生成したインスタンスは,
setBootstrapContext(javax.resource.spi.BootstrapContext)で
ブートストラップコンテキストを設定しなくてはなりません.
protected AbstractResourceAdapterDeployer(int numThreads)
numThreads - スレッドプールのスレッド数| メソッドの詳細 |
|---|
public void setBootstrapContext(BootstrapContext bc)
bc - ブートストラップ・コンテキスト
public void start()
throws ResourceException,
IOException
ResourceAdapterDeployer の記述:
ResourceAdapterDeployer 内の startResourceException - リソースアダプタのデプロイに失敗した場合にスローされます
IOException - リソースアダプタのデプロイ中に入出力エラーが発生した場合にスローされますResourceAdapter.start(BootstrapContext)public void stop()
ResourceAdapterDeployer の記述:
ResourceAdapterDeployer 内の stopprotected ResourceAdapter createResourceAdapter()
protected void loadDeploymentDescripter()
throws ResourceException,
IOException
ResourceException - デプロイメント・ディスクリプタの読み込み中にエラーが発生した場合
IOException - デプロイメント・ディスクリプタの読み込み中にエラーが発生した場合protected SaxHandlerParser createSaxHandlerParser()
protected ClassLoader createClassLoader()
throws ResourceException
ResourceException - JarファイルのパスをURLで表現できなかった場合
protected URL[] toURL(File[] jars)
throws MalformedURLException
jars - ファイルの配列
MalformedURLException - ファイルをURLで表現できなかった場合protected abstract File[] getJarFiles()
protected abstract InputStream getDeploymentDescripterAsInputStream()
throws ResourceException
ResourceException - デプロイメント・ディスクリプタを読み込むためのバイトストリームを作成できなかった場合protected void loggingDeployedMessage()
protected void loggingOutboundResourceAdapter(StringBuilder buf)
buf - ログ情報を作成するバッファ
protected void loggingConnectionDefinition(StringBuilder buf,
OutboundAdapterConfig outboundConfig)
buf - ログ情報を作成するバッファoutboundConfig - outboundなアダプタ構成public BootstrapContext getBootstrapContext()
ResourceAdapterDeployer の記述:
ResourceAdapterDeployer 内の getBootstrapContextpublic String getPath()
public void setPath(String path)
path - リソースアダプタのパスpublic ResourceAdapter getResourceAdapter()
ResourceAdapterDeployer の記述:
ResourceAdapterDeployer 内の getResourceAdapterpublic ResourceAdapterConfig getResourceAdapterConfig()
ResourceAdapterDeployer の記述:
ResourceAdapterDeployer 内の getResourceAdapterConfig
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||