|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.jca.inbound.AbstractMessageEndpoint
public abstract class AbstractMessageEndpoint
MessageEndpointの実装クラスです.
| フィールドの概要 | |
|---|---|
protected boolean |
beforeDeliveryCalled
beforeDelivery(Method)が呼び出された場合はtrue |
protected ClassLoader |
classLoader
クラスローダ |
protected MessageEndpointFactory |
messageEndpointFactory
メッセージエンドポイントファクトリ |
protected boolean |
processing
メッセージエンドポイント固有のハンドラメソッドを処理中なら true |
protected boolean |
succeeded
メッセージエンドポイント固有のハンドラメソッドが正常に終了した場合は true |
protected Transaction |
transaction
トランザクション |
protected TransactionManager |
transactionManager
トランザクションマネージャ |
protected XAResource |
xaResource
XAリソース |
| コンストラクタの概要 | |
|---|---|
AbstractMessageEndpoint(MessageEndpointFactory messageEndpointFactory,
TransactionManager transactionManager,
XAResource xaResource,
ClassLoader classLoader)
インスタンスを構築します. |
|
| メソッドの概要 | |
|---|---|
void |
afterDelivery()
|
protected void |
assertBeforeDeliveryCalled()
beforeDelivery(Method)が呼び出されて正常に終了していなければ例外をスローします. |
protected void |
assertNotProcessing()
メッセージエンドポイント固有のハンドラメソッドが処理中でないことを確認します. |
protected void |
assertNotReentrant()
リエントラントに呼び出されていないことを確認します. |
void |
beforeDelivery(Method method)
|
protected void |
beginTransaction()
トランザクションを開始します. |
protected void |
cleanup()
メッセージエンドポイントの後処理をします. |
protected abstract Object |
deligateActualEndpoint(Object arg)
配信されたメッセージを本来のエンドポイントに委譲します. |
protected Object |
delivery(Object arg)
|
protected Object |
doDelivery(Object arg)
配信されたメッセージを処理します. |
protected void |
endTransaction()
トランザクションを終了します. |
protected ClassLoader |
getClassLoader()
クラスローダを返します. |
protected abstract Method |
getListenerMethod()
リスナ・メソッドを返します. |
protected boolean |
isBeforeDeliveryCalled()
MessageEndpoint.beforeDelivery(Method)が呼び出されていなければtrueを返します. |
protected boolean |
isProcessing()
メッセージエンドポイント固有のハンドラメソッドが処理中であれば trueを返します. |
protected boolean |
isSucceeded()
メッセージエンドポイント固有のハンドラメソッドが正常に処理終了した場合は trueを返します. |
void |
release()
|
protected ClassLoader |
setContextClassLoader(ClassLoader loader)
引数で指定されたクラスローダをスレッドのコンテキストクラスローダに設定します. |
protected void |
setProcessing(boolean processing)
メッセージエンドポイント固有のハンドラメソッドが処理中であれば trueを設定します. |
protected void |
setSucceeded(boolean succeeded)
メッセージエンドポイント固有のハンドラメソッドが正常に処理終了した場合は trueを設定します. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected MessageEndpointFactory messageEndpointFactory
protected TransactionManager transactionManager
protected Transaction transaction
protected XAResource xaResource
protected ClassLoader classLoader
protected boolean beforeDeliveryCalled
beforeDelivery(Method)が呼び出された場合はtrue
protected boolean processing
true
protected boolean succeeded
true
| コンストラクタの詳細 |
|---|
public AbstractMessageEndpoint(MessageEndpointFactory messageEndpointFactory,
TransactionManager transactionManager,
XAResource xaResource,
ClassLoader classLoader)
messageEndpointFactory - メッセージエンドポイントファクトリtransactionManager - トランザクションマネージャxaResource - XAリソースclassLoader - クラスローダ| メソッドの詳細 |
|---|
public void beforeDelivery(Method method)
throws NoSuchMethodException,
ResourceException
MessageEndpoint 内の beforeDeliveryNoSuchMethodException
ResourceException
public void afterDelivery()
throws ResourceException
MessageEndpoint 内の afterDeliveryResourceExceptionpublic void release()
MessageEndpoint 内の releaseprotected Object delivery(Object arg)
arg - 配信されたメッセージ
ResourceException - エンドポイントの処理中に例外が発生した場合protected Object doDelivery(Object arg)
arg - 配信されたメッセージ
protected abstract Object deligateActualEndpoint(Object arg)
arg - 配信されたメッセージ
protected void beginTransaction()
throws ResourceException
ResourceException - トランザクションの開始中に例外が発生した場合
protected void endTransaction()
throws ResourceException
メッセージエンドポイント固有のハンドラメソッドが正常に終了し,トランザクションマネージャが トランザクション中であればトランザクションをコミットします. それ以外の場合はトランザクションをロールバックします.
ResourceException - トランザクションの終了中に例外が発生した場合
protected void assertBeforeDeliveryCalled()
throws IllegalStateException
beforeDelivery(Method)が呼び出されて正常に終了していなければ例外をスローします.
IllegalStateException - beforeDelivery(Method)が呼び出されて正常に終了していない場合protected void assertNotProcessing()
IllegalStateException - メッセージエンドポイント固有のハンドラメソッドが処理中の場合protected void cleanup()
protected abstract Method getListenerMethod()
protected ClassLoader getClassLoader()
protected boolean isBeforeDeliveryCalled()
MessageEndpoint.beforeDelivery(Method)が呼び出されていなければtrueを返します.
MessageEndpoint.beforeDelivery(Method)が呼び出されていなければtrueprotected boolean isProcessing()
trueを返します.
trueprotected void setProcessing(boolean processing)
trueを設定します.
processing - メッセージエンドポイント固有のハンドラメソッドが処理中であればtrueprotected boolean isSucceeded()
trueを返します.
trueprotected void setSucceeded(boolean succeeded)
trueを設定します.
succeeded - メッセージエンドポイント固有のハンドラメソッドが正常に処理終了した場合はtrueprotected ClassLoader setContextClassLoader(ClassLoader loader)
loader - コンテキストクラスローダに設定するクラスローダ
protected void assertNotReentrant()
IllegalStateException - リエントラントに呼び出された場合
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||