|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.jsf.WeldPhaseListener
public class WeldPhaseListener
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.
It's expected that over time, this phase listener may take on more work, but for now the work is focused soley on conversation management. 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.
| Constructor Summary | |
|---|---|
WeldPhaseListener()
|
|
| Method Summary | |
|---|---|
void |
afterPhase(javax.faces.event.PhaseEvent phaseEvent)
Execute after every phase in the JSF life cycle. |
void |
beforePhase(javax.faces.event.PhaseEvent phaseEvent)
Execute before every phase in the JSF life cycle. |
javax.faces.event.PhaseId |
getPhaseId()
The phase id for which this phase listener is active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeldPhaseListener()
| Method Detail |
|---|
public void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
beforePhase in interface javax.faces.event.PhaseListenerphaseEvent - The phase eventpublic void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
afterPhase in interface javax.faces.event.PhaseListenerphaseEvent - The phase eventpublic javax.faces.event.PhaseId getPhaseId()
getPhaseId in interface javax.faces.event.PhaseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||