intra-mart(R) 6.0.13

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

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

public class XmlEventPropertyHandler
extends Object
implements EventPropertyHandler

XMLのEventPropertyHandlerです。
プロパティファイルはアプリケーション毎に分割されます。この場合のファイル名は「プレフィックス_アプリケーションID.xml」です。
プロパティファイルのプレフィックスはPropertyManager.getPropertyHandlerParams(String)でキーにEventManager.EVENT_PROPERTY_HANDLER_KEYを指定したときに取得されるパラメータのうちDEFAULT_BUNDLE_NAMEで取得されるものとなります。 指定しなかった場合のプロパティファイルのプレフィックスはDEFAULT_BUNDLE_NAME_PARAMで示されるものです。
プロパティの設定内容は以下のとおりです。

バージョン:
1.0

フィールドの概要
static String DEFAULT_BUNDLE_NAME
          デフォルトのxmlファイルのプレフィックス
static String DEFAULT_BUNDLE_NAME_PARAM
          xmlのパラメータ名
static String PARAM_DYNAMIC
          プロパティファイルの再読み込み可能のパラメータ名
 
コンストラクタの概要
XmlEventPropertyHandler()
          DefaultEventPropertyHandlerを新規に生成します。
 
メソッドの概要
 String getEventListenerFactoryName(String application, String key)
          アプリケーションIDとキーに該当するイベントリスナファクトリのクラス名を取得します。
 EventListenerFactoryParam[] getEventListenerFactoryParams(String application, String key)
          アプリケーションIDとキーに該当するイベントリスナファクトリの初期パラメータを取得します。
 String getEventName(String application, String key)
          アプリケーションIDとキーに該当するイベントのクラス名を取得します。
 Collection getEventTriggerInfos(String application, String key)
          アプリケーションIDとキーに該当するイベントのイベントトリガ情報をすべて取得します。
 Collection getPostEventTriggerInfos(String application, String key)
          キーに該当するイベントのイベントトリガ情報をすべて取得します。
 void init(PropertyParam[] params)
          プロパティハンドラを初期化します。
 boolean isDynamic()
          プロパティの動的読み込みが可能かどうか調べます。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_BUNDLE_NAME

public static final String DEFAULT_BUNDLE_NAME
デフォルトのxmlファイルのプレフィックス

関連項目:
定数フィールド値

DEFAULT_BUNDLE_NAME_PARAM

public static final String DEFAULT_BUNDLE_NAME_PARAM
xmlのパラメータ名

関連項目:
定数フィールド値

PARAM_DYNAMIC

public static final String PARAM_DYNAMIC
プロパティファイルの再読み込み可能のパラメータ名

関連項目:
定数フィールド値
コンストラクタの詳細

XmlEventPropertyHandler

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

メソッドの詳細

init

public void init(PropertyParam[] params)
          throws PropertyHandlerException
プロパティハンドラを初期化します。

定義:
インタフェース PropertyHandler 内の init
パラメータ:
params - 初期パラメータ
例外:
PropertyHandlerException - プロパティハンドラの初期化時に例外が発生

isDynamic

public boolean isDynamic()
                  throws EventPropertyException
プロパティの動的読み込みが可能かどうか調べます。 このクラスではこのメソッドは常にfalseを返します。

定義:
インタフェース EventPropertyHandler 内の isDynamic
戻り値:
常にfalse
例外:
EventPropertyException - チェック時に例外が発生

getEventName

public String getEventName(String application,
                           String key)
                    throws EventPropertyException
アプリケーションIDとキーに該当するイベントのクラス名を取得します。 該当するイベントが存在しない場合、nullを返します。

定義:
インタフェース EventPropertyHandler 内の getEventName
パラメータ:
application - アプリケーションID
key - イベントのキー
戻り値:
イベントのクラス名
例外:
EventPropertyException - イベントのクラス名の取得に失敗

getEventListenerFactoryName

public String getEventListenerFactoryName(String application,
                                          String key)
                                   throws EventPropertyException
アプリケーションIDとキーに該当するイベントリスナファクトリのクラス名を取得します。

定義:
インタフェース EventPropertyHandler 内の getEventListenerFactoryName
パラメータ:
application - アプリケーションID
key - イベントリスナファクトリのキー
戻り値:
イベントリスナファクトリのクラス名
例外:
EventPropertyException - イベントリスナファクトリのクラス名の取得に失敗

getEventListenerFactoryParams

public EventListenerFactoryParam[] getEventListenerFactoryParams(String application,
                                                                 String key)
                                                          throws EventPropertyException
アプリケーションIDとキーに該当するイベントリスナファクトリの初期パラメータを取得します。

定義:
インタフェース EventPropertyHandler 内の getEventListenerFactoryParams
パラメータ:
application - アプリケーションID
key - イベントのキー
戻り値:
イベントリスナファクトリの初期パラメータ
例外:
EventPropertyException - イベントリスナファクトリの初期パラメータの取得に失敗

getEventTriggerInfos

public Collection getEventTriggerInfos(String application,
                                       String key)
                                throws EventPropertyException
アプリケーションIDとキーに該当するイベントのイベントトリガ情報をすべて取得します。 applicationkeyで定義されるEventTriggerを定義された順番でソートしたCollectionとして取得します。

定義:
インタフェース EventPropertyHandler 内の getEventTriggerInfos
パラメータ:
application - アプリケーションID
key - イベントのキー
戻り値:
イベントトリガ情報のコレクション
例外:
EventPropertyException - イベントトリガ情報の取得に失敗
関連項目:
EventListener

getPostEventTriggerInfos

public Collection getPostEventTriggerInfos(String application,
                                           String key)
                                    throws EventPropertyException
キーに該当するイベントのイベントトリガ情報をすべて取得します。 ここで取得されるイベントトリガはイベントの処理後に実行されます。 applicationkeyで定義されるEventTriggerを定義された順番でソートしたCollectionとして取得します。

定義:
インタフェース EventPropertyHandler 内の getPostEventTriggerInfos
パラメータ:
application - アプリケーション
key - イベントのキー
戻り値:
イベントトリガ情報のコレクション
例外:
EventPropertyException - イベントトリガ情報の取得に失敗
関連項目:
EventListener

intra-mart(R) 6.0.13

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