public class ExceptionQueuedEventContext extends ObjectSE implements SystemEventListenerHolder
このヘルパークラスは、ExceptionQueuedEvent が発生した時点でのシステムの状態に関する ExceptionQueuedEvent へのコンテキストを提供し、SystemEventListener を実装することによって ExceptionQueuedEvent を ExceptionHandler にリンクします。
| 修飾子と型 | フィールドと説明 |
|---|---|
static StringSE | IN_AFTER_PHASE_KEY
|
static StringSE | IN_BEFORE_PHASE_KEY
|
| コンストラクターと説明 |
|---|
ExceptionQueuedEventContext(FacesContext context, ThrowableSE thrown) 引数 |
ExceptionQueuedEventContext(FacesContext context, ThrowableSE thrown, UIComponent component) 引数 |
ExceptionQueuedEventContext(FacesContext context, ThrowableSE thrown, UIComponent component, PhaseId phaseId) ライフサイクルフェーズ |
| 修飾子と型 | メソッドと説明 |
|---|---|
MapSE<ObjectSE, ObjectSE> | getAttributes() この |
UIComponent | getComponent() 例外がスローされたときに処理されていた |
FacesContext | getContext() このリクエストの |
ThrowableSE | getException()
|
ListSE<SystemEventListener> | getListenersForEventClass(ClassSE<? extends SystemEvent> facesEventClass) 現在のリクエストの |
PhaseId | getPhaseId() 例外がスローされたときに処理されていた |
boolean | inAfterPhase() |
boolean | inBeforePhase() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static final StringSE IN_BEFORE_PHASE_KEY
getAttributes() から返された Map のこのキーにエントリが存在することは、現在のライフサイクルフェーズの「前フェーズ」部分でイベントが発生したことを示します。
public static final StringSE IN_AFTER_PHASE_KEY
getAttributes() から返された Map のこのキーにエントリが存在することは、現在のライフサイクルフェーズの「アフターフェーズ」部分でイベントが発生したことを示します。
public ExceptionQueuedEventContext(FacesContext context, ThrowableSE thrown)
引数 Throwable が発生したことを示す新しい ExceptionQueuedEventContext をインスタンス化します。
context - 現在のリクエストの FacesContextthrown - この ExceptionQueuedEventContext インスタンスのコンテキストである Throwable。public ExceptionQueuedEventContext(FacesContext context, ThrowableSE thrown, UIComponent component)
引数 component に関連して、引数 Throwable が発生したことを示す新しい ExceptionQueuedEventContext をインスタンス化します。
context - 現在のリクエストの FacesContextthrown - この ExceptionQueuedEventContext インスタンスのコンテキストである Throwable。component - この ExceptionQueuedEventContext が関係する UIComponent インスタンス public ExceptionQueuedEventContext(FacesContext context, ThrowableSE thrown, UIComponent component, PhaseId phaseId)
ライフサイクルフェーズ phaseId 中に、引数 component に関連する引数 Throwable が発生したことを示す新しい ExceptionQueuedEventContext をインスタンス化します。
context - 現在のリクエストの FacesContextthrown - この ExceptionQueuedEventContext インスタンスのコンテキストである Throwable。component - コンテキストに関連する UIComponent。phaseId - この ExeceptionEventContext が作成された時点の PhaseId。public FacesContext getContext()
このリクエストの FacesContext。
ExceptionQueuedEventContext インスタンスの作成に使用される FacesContext。public ThrowableSE getException()
exception プロパティを返します。
public UIComponent getComponent()
例外がスローされたときに処理されていた UIComponent を返します。ないか利用できない場合、これは null になります。
public PhaseId getPhaseId()
例外がスローされたときに処理されていた PhaseId を返します。ないか利用できない場合、これは null になります。
public boolean inBeforePhase()
before phase 処理中に例外が発生した場合は true public boolean inAfterPhase()
after phase 処理中に例外が発生した場合は true public MapSE<ObjectSE,ObjectSE> getAttributes()
この ExceptionQueuedEvent のコンテキストに関連する属性の Map。
public ListSE<SystemEventListener> getListenersForEventClass(ClassSE<? extends SystemEvent> facesEventClass)
現在のリクエストの ExceptionHandler という 1 つのエントリを含む List を返します。
SystemEventListenerHolder の getListenersForEventClass facesEventClass - リスナーが返されるクラス Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.