Save This Page
Home » mojarra-1.2_09-b02-FCS-source » com.sun.faces.lifecycle » [javadoc | source]
com.sun.faces.lifecycle
public class: ELResolverInitPhaseListener [javadoc | source]
java.lang.Object
   com.sun.faces.lifecycle.ELResolverInitPhaseListener

All Implemented Interfaces:
    javax.faces.event.PhaseListener

This class is used to register the JSF ELResolver stack with the JSP 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 PhaseListener will remove itself from all registered lifecycle instances registered with the application.

Method from com.sun.faces.lifecycle.ELResolverInitPhaseListener Summary:
afterPhase,   beforePhase,   getPhaseId,   populateFacesELResolverForJsp
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.faces.lifecycle.ELResolverInitPhaseListener Detail:
 public synchronized  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 PhaseListener with all Lifecycle instances.

 public synchronized  void beforePhase(PhaseEvent event) 
 public PhaseId getPhaseId() 

    Return the identifier of the request processing phase during which this listener is interested in processing javax.faces.event.PhaseEvent events. Legal values are the singleton instances defined by the javax.faces.event.PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all standard phases.

    We return PhaseId.ANY_PHASE.

 protected  void populateFacesELResolverForJsp(FacesContext context) 
    Populate the FacesCompositeELResolver stack registered with JSP if a request is being processed for the very first time. At the application initialiazation time, an empty CompositeELResolver is registered with JSP because ELResolvers can be added until the first request is serviced.