|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.jca.deploy.impl.AbstractDeployer<ManagedConnectionFactory>
org.seasar.jca.deploy.impl.ManagedConnectionFactoryDeployer
public class ManagedConnectionFactoryDeployer
ManagedConnectionFactory
をデプロイするクラスです.
フィールドの概要 | |
---|---|
protected Object |
cf
ConnectionFactory |
protected boolean |
managedTx
コネクションがS2JCA側からトランザクション制御される場合は true |
protected int |
maxPoolSize
コネクションプールの最大値 |
protected ManagedConnectionFactory |
mcf
ManagedConnectionFactory |
protected String |
mcfClassName
ManagedConnectionFactory の実装クラス名 |
protected int |
mcfIndex
ra.xml ファイルに記述された何番目の
connector/resource-adapter/outbound-resourceadapter/connection-definition を
扱うかを示すインデックス |
protected int |
minPoolSize
コネクションプールの最小値 |
protected ResourceAdapterDeployer |
raDeployer
リソースアダプタ・デプロイヤ |
protected int |
timeout
アイドル状態になったコネクションをクローズするまでのタイムアウト時間 (秒単位) |
protected TransactionManager |
tm
トランザクションマネージャ |
クラス org.seasar.jca.deploy.impl.AbstractDeployer から継承されたフィールド |
---|
cl, configProperties, LINE_SEPARATOR, PARAMETER_TYPE |
コンストラクタの概要 | |
---|---|
ManagedConnectionFactoryDeployer(ResourceAdapterDeployer raDeployer)
インスタンスを構築します. |
メソッドの概要 | |
---|---|
protected void |
assertConnectionDefinitionConfig()
リソースアダプタの ra.xml に
connector/resource-adapter/outbound-resourceadapter/connection-definition を
定義されていることを確認します. |
protected void |
assertOutboundResourceAdapterConfig()
リソースアダプタの ra.xml に
connector/resource-adapter/outbound-resourceadapter が
定義されていることを確認します. |
protected BasicPoolingPolicy |
createBasicPoolingPolicy()
BasicPoolingPolicy を作成して返します. |
Object |
createConnectionFactory()
ConnectionFactory を作成して返します. |
protected ConnectionManager |
createConnectionManager()
ConnectionManager を作成して返します. |
protected ManagedConnectionFactory |
createManagedConnectionFactory()
ManagedConnectionFactory を作成して返します. |
protected ConnectionDefConfig |
getConnectionDefinitionConfig()
リソースアダプタ・デプロイヤから connector/resource-adapter/outbound-resourceadapter/connection-definition を
取得して返します. |
String |
getManagedConnectionFactoryClass()
ManagedConnectionFactory の実装クラスを返します. |
int |
getManagedConnectionFactoryIndex()
ra.xml ファイルに記述された何番目の
connector/resource-adapter/outbound-resourceadapter/connection-definition を
扱うかを示すインデックスを返します. |
int |
getMaxPoolSize()
コネクションプールの最大値を返します. |
int |
getMinPoolSize()
コネクションプールの最小値を返します. |
int |
getTimeout()
アイドル状態になったコネクションをクローズするまでのタイムアウト時間 (秒単位) を返します. |
TransactionManager |
getTransactionManager()
トランザクションマネージャを返します. |
boolean |
isManagedTx()
コネクションがS2JCA側からトランザクション制御される場合は true を返します. |
protected void |
loggingDeployedMessage()
ManagedConnectionFactory をデプロイした情報をログに出力します. |
void |
setManagedConnectionFactoryClass(String mcfClassName)
ManagedConnectionFactory の実装クラスを設定します. |
void |
setManagedConnectionFactoryIndex(int mcfIndex)
ra.xml ファイルに記述された何番目の
connector/resource-adapter/outbound-resourceadapter/connection-definition を
扱うかを示すインデックスを設定します. |
void |
setManagedTx(boolean managedTx)
コネクションがS2JCA側からトランザクション制御される場合は true を設定します. |
void |
setMaxPoolSize(int maxPoolSize)
コネクションプールの最大値を設定します. |
void |
setMinPoolSize(int minPoolSize)
コネクションプールの最小値を設定します. |
void |
setTimeout(int timeout)
アイドル状態になったコネクションをクローズするまでのタイムアウト時間 (秒単位) を設定します. |
void |
setTransactionManager(TransactionManager tm)
トランザクションマネージャを設定します. |
クラス 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 |
フィールドの詳細 |
---|
protected final ResourceAdapterDeployer raDeployer
protected TransactionManager tm
protected String mcfClassName
ManagedConnectionFactory
の実装クラス名
protected int mcfIndex
ra.xml
ファイルに記述された何番目の
connector/resource-adapter/outbound-resourceadapter/connection-definition
を
扱うかを示すインデックス
protected boolean managedTx
true
protected int minPoolSize
protected int maxPoolSize
protected int timeout
protected ManagedConnectionFactory mcf
ManagedConnectionFactory
protected Object cf
ConnectionFactory
コンストラクタの詳細 |
---|
public ManagedConnectionFactoryDeployer(ResourceAdapterDeployer raDeployer)
raDeployer
- リソースアダプタ・デプロイヤメソッドの詳細 |
---|
public Object createConnectionFactory() throws ResourceException
ConnectionFactory
を作成して返します.
ConnectionFactory
ResourceException
- ConnectionFactory
の作成中に例外が発生した場合protected ManagedConnectionFactory createManagedConnectionFactory() throws ResourceException
ManagedConnectionFactory
を作成して返します.
ManagedConnectionFactory
ResourceException
- ManagedConnectionFactory
の作成中に例外が発生した場合protected ConnectionManager createConnectionManager() throws ResourceException
ConnectionManager
を作成して返します.
ConnectionManager
ResourceException
- ConnectionManager
の作成中に例外が発生した場合protected BasicPoolingPolicy createBasicPoolingPolicy() throws ResourceException
BasicPoolingPolicy
を作成して返します.
BasicPoolingPolicy
ResourceException
- BasicPoolingPolicy
の作成中に例外が発生した場合protected void assertOutboundResourceAdapterConfig() throws ResourceException
ra.xml
に
connector/resource-adapter/outbound-resourceadapter
が
定義されていることを確認します.
ResourceException
- ra.xml
にconnector/resource-adapter/outbound-resourceadapter
が定義されていない場合protected void assertConnectionDefinitionConfig() throws ResourceException
ra.xml
に
connector/resource-adapter/outbound-resourceadapter/connection-definition
を
定義されていることを確認します.
ResourceException
- ra.xml
にconnector/resource-adapter/outbound-resourceadapter/connection-definition
が定義されていない場合protected ConnectionDefConfig getConnectionDefinitionConfig()
connector/resource-adapter/outbound-resourceadapter/connection-definition
を
取得して返します.
connector/resource-adapter/outbound-resourceadapter/connection-definition
protected void loggingDeployedMessage()
ManagedConnectionFactory
をデプロイした情報をログに出力します.
public TransactionManager getTransactionManager()
public void setTransactionManager(TransactionManager tm)
tm
- トランザクションマネージャpublic String getManagedConnectionFactoryClass()
ManagedConnectionFactory
の実装クラスを返します.
ManagedConnectionFactory
の実装クラスpublic void setManagedConnectionFactoryClass(String mcfClassName)
ManagedConnectionFactory
の実装クラスを設定します.
mcfClassName
- ManagedConnectionFactory
の実装クラスpublic int getManagedConnectionFactoryIndex()
ra.xml
ファイルに記述された何番目の
connector/resource-adapter/outbound-resourceadapter/connection-definition
を
扱うかを示すインデックスを返します.
ra.xml
ファイルに記述された何番目のconnector/resource-adapter/outbound-resourceadapter/connection-definition
を扱うかを示すインデックスpublic void setManagedConnectionFactoryIndex(int mcfIndex)
ra.xml
ファイルに記述された何番目の
connector/resource-adapter/outbound-resourceadapter/connection-definition
を
扱うかを示すインデックスを設定します.
mcfIndex
- ra.xml
ファイルに記述された何番目のconnector/resource-adapter/outbound-resourceadapter/connection-definition
を扱うかを示すインデックスpublic boolean isManagedTx()
true
を返します.
true
public void setManagedTx(boolean managedTx)
true
を設定します.
managedTx
- コネクションがS2JCA側からトランザクション制御される場合はtrue
public int getMinPoolSize()
public void setMinPoolSize(int minPoolSize)
minPoolSize
- コネクションプールの最小値public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
maxPoolSize
- コネクションプールの最大値public int getTimeout()
public void setTimeout(int timeout)
timeout
- アイドル状態になったコネクションをクローズするまでのタイムアウト時間 (秒単位)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |