|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.jca.inbound.AbstractMessageEndpointFactory
public abstract class AbstractMessageEndpointFactory
MessageEndpointFactoryの抽象クラスです.
| フィールドの概要 | |
|---|---|
protected ComponentDef |
componentDef
メッセージエンドポイントのコンポーネント定義 |
protected S2Container |
container
S2コンテナ |
protected boolean |
deliveryTransacted
メッセージをトランザクショナルに処理する場合は true |
protected Class<? extends AbstractMessageEndpoint> |
endpointClass
メッセージエンドポイントの実装クラス |
protected Constructor<? extends AbstractMessageEndpoint> |
endpointConstructor
メッセージエンドポイントのコンストラクタ |
protected String |
listenerName
リスナのコンポーネント名 |
protected Class<?> |
listenerType
メッセージエンドポイントの実装するリスナの型 |
protected TransactionManager |
transactionManager
トランザクションマネージャ |
| コンストラクタの概要 | |
|---|---|
AbstractMessageEndpointFactory()
インスタンスを構築します. |
|
AbstractMessageEndpointFactory(Class<? extends AbstractMessageEndpoint> endpointClass,
Class<?> listenerType)
インスタンスを構築します. |
|
| メソッドの概要 | |
|---|---|
MessageEndpoint |
createEndpoint(XAResource xaResource)
|
S2Container |
getContainer()
S2コンテナを返します. |
TransactionManager |
getTransactionManager()
トランザクションマネージャを返します. |
void |
initialize()
インスタンスを初期化します. |
boolean |
isDeliveryTransacted(Method method)
|
void |
setContainer(S2Container container)
S2コンテナを設定します. |
void |
setDeliveryTransacted(boolean deliveryTransacted)
メッセージをトランザクショナルに処理する場合は trueを設定します. |
void |
setEndpointClass(Class<? extends AbstractMessageEndpoint> endpointClass)
メッセージエンドポイントの実装クラスを設定します. |
void |
setListenerName(String listenerName)
メッセージエンドポイントのコンポーネント名を設定します. |
void |
setListenerType(Class<?> listenerType)
メッセージエンドポイントの実装するリスナのインタフェース型を設定します. |
void |
setTransactionManager(TransactionManager transactionManager)
トランザクションマネージャを設定します. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected S2Container container
protected TransactionManager transactionManager
protected Class<? extends AbstractMessageEndpoint> endpointClass
protected Class<?> listenerType
protected String listenerName
protected boolean deliveryTransacted
true
protected Constructor<? extends AbstractMessageEndpoint> endpointConstructor
protected ComponentDef componentDef
| コンストラクタの詳細 |
|---|
public AbstractMessageEndpointFactory()
public AbstractMessageEndpointFactory(Class<? extends AbstractMessageEndpoint> endpointClass,
Class<?> listenerType)
endpointClass - メッセージエンドポイントの実装クラスlistenerType - メッセージエンドポイントの実装するリスナの型| メソッドの詳細 |
|---|
public S2Container getContainer()
public void setContainer(S2Container container)
container - S2コンテナpublic TransactionManager getTransactionManager()
public void setTransactionManager(TransactionManager transactionManager)
transactionManager - トランザクションマネージャpublic void setEndpointClass(Class<? extends AbstractMessageEndpoint> endpointClass)
endpointClass - メッセージエンドポイントの実装クラスpublic void setListenerType(Class<?> listenerType)
listenerType - メッセージエンドポイントの実装するリスナのインタフェース型public void setListenerName(String listenerName)
コンポーネント名が設定されると,そのコンポーネント名でS2コンテナからメッセージエンドポイントをルックアップします. コンポーネント名が設定されなかった場合はリスナのインタフェース型でS2コンテナからルックアップします.
listenerName - メッセージエンドポイントのコンポーネント名public void setDeliveryTransacted(boolean deliveryTransacted)
trueを設定します.
deliveryTransacted - メッセージをトランザクショナルに処理する場合はtruepublic void initialize()
public MessageEndpoint createEndpoint(XAResource xaResource)
throws UnavailableException
MessageEndpointFactory 内の createEndpointUnavailableException
public boolean isDeliveryTransacted(Method method)
throws NoSuchMethodException
MessageEndpointFactory 内の isDeliveryTransactedNoSuchMethodException
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||