Class ELResolverInitPhaseListener
- java.lang.Object
-
- com.sun.faces.lifecycle.ELResolverInitPhaseListener
-
- All Implemented Interfaces:
PhaseListener,Serializable,EventListener
public class ELResolverInitPhaseListener extends Object implements PhaseListener
This class is used to register the FacesELResolverstack with the Jakarta Server Pages container.We overload it a bit to set a bit on the ApplicationAssociate stating we've processed a request to indicate the appliation is fully initialized.
After the first request, this
PhaseListenerwill remove itself from all registered lifecycle instances registered with the application.- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ELResolverInitPhaseListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPhase(PhaseEvent event)Handle a notification that the processing for a particular phase has just been completed.voidbeforePhase(PhaseEvent event)Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.PhaseIdgetPhaseId()Return the identifier of the request processing phase during which this listener is interested in processingPhaseEventevents.static voidremoveELResolverInitPhaseListener()
-
-
-
Method Detail
-
afterPhase
public void afterPhase(PhaseEvent event)
Handle a notification that the processing for a particular phase has just been completed.
When invoked, this phase listener will remove itself as a registered
PhaseListenerwith allLifecycleinstances.- Specified by:
afterPhasein interfacePhaseListener- Parameters:
event- the phase event.
-
beforePhase
public void beforePhase(PhaseEvent event)
Description copied from interface:PhaseListenerHandle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.
- Specified by:
beforePhasein interfacePhaseListener- Parameters:
event- the phase event.
-
getPhaseId
public PhaseId getPhaseId()
Return the identifier of the request processing phase during which this listener is interested in processing
PhaseEventevents. Legal values are the singleton instances defined by thePhaseIdclass, includingPhaseId.ANY_PHASEto indicate an interest in being notified for all standard phases.We return
PhaseId.ANY_PHASE.- Specified by:
getPhaseIdin interfacePhaseListener- Returns:
- the phase id.
-
removeELResolverInitPhaseListener
public static void removeELResolverInitPhaseListener()
-
-