intra-mart(R)
5.0

jp.co.intra_mart.framework.base.event
クラス GenericEventListener

java.lang.Object
  拡張jp.co.intra_mart.framework.base.event.GenericEventListener
すべての実装インタフェース:
EventListener

public class GenericEventListener
extends Object
implements EventListener

汎用的なイベントリスナです。

バージョン:
1.0

コンストラクタの概要
GenericEventListener()
          GenericEventListenerを新規に生成します。
 
メソッドの概要
 EventResult execute(Event event)
          処理を実行します。
 void setInTransaction(boolean transaction)
          このイベントリスナがトランザクションの中で実行されているかどうかの情報を設定します。
 void setListener(StandardEventListener listener)
          イベント処理クラスを設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GenericEventListener

public GenericEventListener()
GenericEventListenerを新規に生成します。

メソッドの詳細

execute

public EventResult execute(Event event)
                    throws SystemException,
                           ApplicationException
処理を実行します。 イベントを元に処理を実行します。 このインタフェースを実装するすべてのクラスは、 すべてのイベントトリガを実行した後に処理を 実行するように設計されている必要があります。

定義:
インタフェース EventListener 内の execute
パラメータ:
event - イベント
戻り値:
イベント処理結果
例外:
ApplicationException - イベント処理時にアプリケーション例外が発生
SystemException - システム処理時にアプリケーション例外が発生

setListener

public void setListener(StandardEventListener listener)
イベント処理クラスを設定します。

パラメータ:
listener - イベント処理クラス

setInTransaction

public void setInTransaction(boolean transaction)
このイベントリスナがトランザクションの中で実行されているかどうかの情報を設定します。

定義:
インタフェース EventListener 内の setInTransaction
パラメータ:
transaction - トランザクションの中で実行されている場合:true、そうでない場合:false
導入されたバージョン:
4.2

intra-mart(R)
5.0

Copyright © 2000-2005 NTT DATA INTRAMART CO.,LTD. All Rights Reserved.