|
Oracle Application Development Framework Lifecycle Java API Reference 10g Release 3 (10.1.3) B25779-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.adf.controller.v2.lifecycle.Lifecycle
oracle.adf.controller.faces.lifecycle.ADFPhaseListener
A Faces phase listener use to bootstrap and execute the ADF PageLifecycle.
This is also a factory to create the FacesPageLifecycle instances. Subclass ADFPhaseListener to provide alternate FacesPageLifecycle instance to all web page. Specify your ADFPhaseListener subclass in the faces-config file to replace the oracle.adf.controller.faces.lifecycle.ADFPhaseListener entry.
| Nested Class Summary |
| Nested classes inherited from class oracle.adf.controller.v2.lifecycle.Lifecycle |
Lifecycle.Phase |
| Field Summary | |
static java.lang.String |
CurrentViewRootRequestParamUse to store the current viewRoot on the request map. |
static java.lang.String |
LifecycleContextRequestParamUsed to store the LifecycleContext on the request map. |
protected oracle.adf.controller.faces.lifecycle.ADFPhaseListener.PhaseInvoker[] |
phasesArray of PhaseInvoker, one for each phase of the Faces Lifecycle. |
| Fields inherited from class oracle.adf.controller.v2.lifecycle.Lifecycle |
APPLY_INPUT_VALUES, APPLY_INPUT_VALUES_ID, INIT_CONTEXT, INIT_CONTEXT_ID, listeners, METADATA_COMMIT, PREPARE_MODEL, PREPARE_MODEL_ID, PREPARE_RENDER, PREPARE_RENDER_ID, PROCESS_COMPONENT_EVENTS, PROCESS_COMPONENT_EVENTS_ID, PROCESS_UPDATE_MODEL, PROCESS_UPDATE_MODEL_ID, VALIDATE_INPUT_VALUES, VALIDATE_INPUT_VALUES_ID, VALIDATE_MODEL_UPDATES, VALIDATE_MODEL_UPDATES_ID |
| Constructor Summary | |
ADFPhaseListener() |
|
| Method Summary | |
void |
afterPhase(javax.faces.event.PhaseEvent event)Delegate to the PhaseInvoker afterPhase method for each phase based on the phaseId. |
void |
beforePhase(javax.faces.event.PhaseEvent event)Delegate to the PhaseInvoker beforePhase method for each phase based on the phaseId. |
protected PageLifecycle |
createPageLifecycle()Create and return the default instance of the ADF PageLifecycle to be used with this web application. |
void |
execute(java.util.Map envMap)Execute does not do anything in the Faces case since the phases of the ADFLifecycle are triggered by the JSF phases. |
protected java.util.Map |
getEnvMap(javax.faces.context.FacesContext context)Initialize the environment map that will be use to create a new LifecycleContext. |
javax.faces.event.PhaseId |
getPhaseId()Return the fact that we want to listen to each phase. |
protected boolean |
isDesignTime()Utility method to know when we are being used at design time in an IDE. |
| Methods inherited from class oracle.adf.controller.v2.lifecycle.Lifecycle |
addPagePhaseListener, executePhase, getPagePhaseListeners, removePagePhaseListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LifecycleContextRequestParam
public static final java.lang.String CurrentViewRootRequestParam
protected final oracle.adf.controller.faces.lifecycle.ADFPhaseListener.PhaseInvoker[] phases
| Constructor Detail |
public ADFPhaseListener()
| Method Detail |
public final void beforePhase(javax.faces.event.PhaseEvent event)
beforePhase in interface javax.faces.event.PhaseListenerpublic final void afterPhase(javax.faces.event.PhaseEvent event)
afterPhase in interface javax.faces.event.PhaseListenerpublic javax.faces.event.PhaseId getPhaseId()
getPhaseId in interface javax.faces.event.PhaseListenerprotected boolean isDesignTime()
protected PageLifecycle createPageLifecycle()
Create and return the default instance of the ADF PageLifecycle to be used with this web application.
The base implementation creates an instance ofFacesPageLifecycle. This method is only called once the first time FacesPageLifecycle is needed, instance is then cached for the lifetime of the application.
public void execute(java.util.Map envMap)
throws java.lang.Exception
execute in class Lifecyclejava.lang.Exceptionprotected java.util.Map getEnvMap(javax.faces.context.FacesContext context)
INIT_CONTEXT phase of the Lifecycle.
|
Oracle Application Development Framework Lifecycle Java API Reference 10g Release 3 (10.1.3) B25779-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||