com.webmethods.caf.faces.bean
Class PreferencesPhaseListener

java.lang.Object
  extended by BasePhaseListener
      extended by com.webmethods.caf.faces.bean.PreferencesPhaseListener

public class PreferencesPhaseListener
extends BasePhaseListener

This listener will delegate to the appropriate page bean.

This class is not intended to be used by clients.


Constructor Summary
PreferencesPhaseListener()
           
 
Method Summary
 void afterPhase(PhaseEvent phaseEvent)
          Handles a notification that the processing for a particular phase has just been completed.
 void beforePhase(PhaseEvent phaseEvent)
          Handles a notification that the processing for a particular phase of the request processing lifecycle is about to begin.
 PhaseId getPhaseId()
          Returns PhaseId#ANY_PHASE which indicates all standard phases.
protected  BaseFacesPreferencesBean getPreferencesBean(FacesContext facesContext)
          Returns the object of BaseFacesPreferencesBean if there is one, else returns null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesPhaseListener

public PreferencesPhaseListener()
Method Detail

getPhaseId

public PhaseId getPhaseId()
Returns PhaseId#ANY_PHASE which indicates all standard phases.

See Also:
PhaseListener

getPreferencesBean

protected BaseFacesPreferencesBean getPreferencesBean(FacesContext facesContext)
Returns the object of BaseFacesPreferencesBean if there is one, else returns null.

Parameters:
facesContext - the context.
Returns:
BaseFacesPreferencesBean or null if none present.

afterPhase

public void afterPhase(PhaseEvent phaseEvent)
Handles a notification that the processing for a particular phase has just been completed.

See Also:
PhaseListener

beforePhase

public void beforePhase(PhaseEvent phaseEvent)
Handles a notification that the processing for a particular phase of the request processing lifecycle is about to begin.

See Also:
PhaseListener