This helper class provides context to the ExceptionQueuedEvent regarding the state of the system at the point
in time when the ExceptionQueuedEvent occurs and links the ExceptionQueuedEvent to the
jakarta.faces.context.ExceptionHandler by virtue of implementing SystemEventListener.
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private UIComponent | |
| private FacesContext | |
| public static final String | IN_AFTER_PHASE_KEY
The presence of an entry under this key in the |
| public static final String | IN_BEFORE_PHASE_KEY
The presence of an entry under this key in the |
| private List | |
| private PhaseId | |
| private Throwable |
| Access | Constructor and Description |
|---|---|
| public | ExceptionQueuedEventContext(FacesContext
FacesContext for the current requestthe thrown)Throwable that is the context for this ExceptionQueuedEventContext
instance.
Instantiate a new |
| public | ExceptionQueuedEventContext(FacesContext
FacesContext for the current requestthe thrown, UIComponent Throwable that is the context for this ExceptionQueuedEventContext
instance.the component)UIComponent instance to which this ExceptionQueuedEventContext pertains
Instantiate a new |
| public | ExceptionQueuedEventContext(FacesContext
FacesContext for the current requestthe thrown, UIComponent Throwable that is the context for this ExceptionQueuedEventContext
instance.the component, PhaseId UIComponent that is relevant to the context.the phaseId)PhaseId at the time this ExeceptionEventContext is created.
Instantiate a new |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: attributes related to this context
A |
| public UIComponent | Returns: the component
Return the |
| public FacesContext | |
| public Throwable | |
| public List | getListenersForEventClass(Class<? extends SystemEvent>
the class for which listeners are to be returned facesEventClass)Implements jakarta.
Return a |
| public PhaseId | Returns: the phase id
Return the |
| public boolean | Returns: true if the exception occurred during the after phase processing for a particular
lifecycle phase
|
| public boolean | Returns: true if the exception occurred during the before phase processing for a particular
lifecycle phase
|
| private boolean |
| attributes | back to summary |
|---|---|
| private Map<Object, Object> attributes | |
| component | back to summary |
|---|---|
| private UIComponent component | |
| context | back to summary |
|---|---|
| private FacesContext context | |
| IN_AFTER_PHASE_KEY | back to summary |
|---|---|
| public static final String IN_AFTER_PHASE_KEY
The presence of an entry under this key in the | |
| IN_BEFORE_PHASE_KEY | back to summary |
|---|---|
| public static final String IN_BEFORE_PHASE_KEY
The presence of an entry under this key in the | |
| listener | back to summary |
|---|---|
| private List<SystemEventListener> listener | |
| phaseId | back to summary |
|---|---|
| private PhaseId phaseId | |
| thrown | back to summary |
|---|---|
| private Throwable thrown | |
| ExceptionQueuedEventContext | back to summary |
|---|---|
| public ExceptionQueuedEventContext(FacesContext context, Throwable thrown)
Instantiate a new
| |
| ExceptionQueuedEventContext | back to summary |
|---|---|
| public ExceptionQueuedEventContext(FacesContext context, Throwable thrown, UIComponent component)
Instantiate a new
| |
| ExceptionQueuedEventContext | back to summary |
|---|---|
| public ExceptionQueuedEventContext(FacesContext context, Throwable thrown, UIComponent component, PhaseId phaseId)
Instantiate a new
| |
| getAttributes | back to summary |
|---|---|
| public Map
A | |
| getComponent | back to summary |
|---|---|
| public UIComponent getComponent()
Return the
| |
| getContext | back to summary |
|---|---|
| public FacesContext getContext()
The
| |
| getException | back to summary |
|---|---|
| public Throwable getException()
Return the
| |
| getListenersForEventClass | back to summary |
|---|---|
| public List Implements jakarta.
Return a
| |
| getPhaseId | back to summary |
|---|---|
| public PhaseId getPhaseId()
Return the
| |
| inAfterPhase | back to summary |
|---|---|
public boolean inAfterPhase()
| |
| inBeforePhase | back to summary |
|---|---|
public boolean inBeforePhase()
| |
| isAttributeDefined | back to summary |
|---|---|
| private boolean isAttributeDefined(String key) | |