クラス EventFactorySupport

java.lang.ObjectSE
org.springframework.webflow.action.EventFactorySupport
既知の直属サブクラス
ResultObjectBasedEventFactorySuccessEventFactory

public class EventFactorySupport extends ObjectSE
Event オブジェクトの作成を支援する便利なサポートクラス。

このクラスは、共通のイベントオブジェクトを作成する必要がある場合に、単純なユーティリティクラスとして使用できます。または、カスタムイベントファクトリを作成するときに、基本サポートクラスとして拡張することもできます。

作成者:
Keith Donald, Erwin Vervaet
  • コンストラクターの詳細

    • EventFactorySupport

      public EventFactorySupport()
  • メソッドの詳細

    • getSuccessEventId

      public StringSE getSuccessEventId()
    • setSuccessEventId

      public void setSuccessEventId(StringSE successEventId)
    • getErrorEventId

      public StringSE getErrorEventId()
    • setErrorEventId

      public void setErrorEventId(StringSE errorEventId)
    • getYesEventId

      public StringSE getYesEventId()
    • setYesEventId

      public void setYesEventId(StringSE yesEventId)
    • getNoEventId

      public StringSE getNoEventId()
    • setNoEventId

      public void setNoEventId(StringSE noEventId)
    • getNullEventId

      public StringSE getNullEventId()
    • setNullEventId

      public void setNullEventId(StringSE nullEventId)
    • getExceptionAttributeName

      public StringSE getExceptionAttributeName()
    • setExceptionAttributeName

      public void setExceptionAttributeName(StringSE exceptionAttributeName)
    • getResultAttributeName

      public StringSE getResultAttributeName()
    • setResultAttributeName

      public void setResultAttributeName(StringSE resultAttributeName)
    • success

      public Event success(ObjectSE source)
      「成功」イベントを返します。
      パラメーター:
      source - イベントのソース
    • success

      public Event success(ObjectSE source, ObjectSE result)
      指定された結果オブジェクトを属性として持つ「成功」イベントを返します。結果オブジェクトは、属性名 getResultAttributeName() で識別されます。
      パラメーター:
      source - イベントのソース
      result - アクション成功の結果
    • error

      public Event error(ObjectSE source)
      「エラー」イベントを返します。
      パラメーター:
      source - イベントのソース
    • error

      public Event error(ObjectSE source, ExceptionSE e)
      指定された例外によって発生した「エラー」イベントを返します。
      パラメーター:
      source - イベントのソース
      e - エラーイベントの原因となった例外を、getExceptionAttributeName() という名前のイベント属性として設定します。
    • yes

      public Event yes(ObjectSE source)
      「はい」イベントを返します。
      パラメーター:
      source - イベントのソース
    • no

      public Event no(ObjectSE source)
      「いいえ」の結果イベントを返します。
      パラメーター:
      source - イベントのソース
    • event

      public Event event(ObjectSE source, boolean booleanResult)
      ブール式の発生を伝えるイベントを返します。
      パラメーター:
      source - イベントのソース
      booleanResult - ブール値
      戻り値
      はい、もしくは、いいえ
    • event

      public Event event(ObjectSE source, StringSE eventId)
      指定された識別子を持つイベントを返します。
      パラメーター:
      source - イベントのソース
      eventId - 結果イベント識別子
      戻り値:
      行事
    • event

      public Event event(ObjectSE source, StringSE eventId, AttributeMap<ObjectSE> attributes)
      指定された識別子と指定された属性セットを持つイベントを返します。
      パラメーター:
      source - イベントのソース
      eventId - 結果イベント識別子
      attributes - イベントペイロード属性
      戻り値:
      行事
    • event

      public Event event(ObjectSE source, StringSE eventId, StringSE attributeName, ObjectSE attributeValue)
      指定された識別子と単一の属性を持つ結果イベントを返します。
      パラメーター:
      source - イベントのソース
      eventId - 結果 ID
      attributeName - 属性名
      attributeValue - 属性値
      戻り値:
      行事