public class WeldPhaseListener
extends java.lang.Object
A JSF phase listener that initializes aspects of Weld in a more fine-grained, integrated manner than what is possible with a servlet filter. This phase listener works in conjunction with other hooks and callbacks registered with the JSF runtime to help manage the Weld lifecycle.
The phase listener restores the long-running conversation if the conversation id token is detected in the request, activates the conversation context in either case (long-running or transient), and finally passivates the conversation after the response has been committed.
Execute before every phase in the JSF life cycle. The order this phase listener executes in relation to other phase listeners is determined by the ordering of the faces-config.xml descriptors. This phase listener should take precedence over extensions.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NO_CID |
| Constructor and Description |
|---|
WeldPhaseListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPhase(PhaseEvent phaseEvent) |
void |
beforePhase(PhaseEvent phaseEvent) |
static java.lang.String |
getConversationId(FacesContext facesContext,
ConversationContext conversationContext)
Gets the propagated conversation id parameter from the request
|
PhaseId |
getPhaseId()
The phase id for which this phase listener is active.
|
public static final java.lang.String NO_CID
public void beforePhase(PhaseEvent phaseEvent)
public void afterPhase(PhaseEvent phaseEvent)
public PhaseId getPhaseId()
public static java.lang.String getConversationId(FacesContext facesContext,
ConversationContext conversationContext)
Copyright © 2014 Seam Framework. All Rights Reserved.