Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.4.0)

E10652-05

oracle.adf.controller.v2.lifecycle
Class Lifecycle

java.lang.Object
  extended by oracle.adf.controller.v2.lifecycle.PagePhaseListenerManager
      extended by oracle.adf.controller.v2.lifecycle.Lifecycle
Direct Known Subclasses:
ADFLifecycle

public abstract class Lifecycle
extends PagePhaseListenerManager

Processing of the Lifecycle.

It handle the registration of PagePhaseListener and make sure that during execution the listeners are notified of the beforePhase and afterPhase event. This class also delegate the implementation of each of the phase to the PageController.

Since:
10.1.3

Nested Class Summary
protected static class Lifecycle.Phase
          Typesafe enumeration of all existing phases of the Lifecycle.
 
Field Summary
protected static Lifecycle.Phase APPLY_INPUT_VALUES
          The applyInputValues phase.
static int APPLY_INPUT_VALUES_ID
          id of the APPLY_INPUT_VALUES phase.
protected static Lifecycle.Phase INIT_CONTEXT
          The initContext phase.
static int INIT_CONTEXT_ID
          id of the INIT_CONTEXT phase.
protected static Lifecycle.Phase METADATA_COMMIT
          The metadataCommit phase.
static int METADATA_COMMIT_ID
          id of the METADATA_COMMIT phase.
static java.util.List<java.lang.String> mPhaseNames
          A list of all the phase name.
protected static Lifecycle.Phase PREPARE_MODEL
          The prepareModel phase.
static int PREPARE_MODEL_ID
          id of the PREPARE_MODEL phase.
protected static Lifecycle.Phase PREPARE_RENDER
          The prepareRender phase.
static int PREPARE_RENDER_ID
          id of the PREPARE_RENDER phase.
protected static Lifecycle.Phase PROCESS_COMPONENT_EVENTS
          The processComponentEvents phase.
static int PROCESS_COMPONENT_EVENTS_ID
          id of the PROCESS_COMPONENT_EVENTS phase.
protected static Lifecycle.Phase PROCESS_UPDATE_MODEL
          The processUpdateModel phase.
static int PROCESS_UPDATE_MODEL_ID
          id of the PROCESS_UPDATE_MODEL phase.
protected static Lifecycle.Phase VALIDATE_INPUT_VALUES
          The validateInputValues phase.
static int VALIDATE_INPUT_VALUES_ID
          id of the VALIDATE_INPUT_VALUES phase.
protected static Lifecycle.Phase VALIDATE_MODEL_UPDATES
          The validateModelUpdates phase.
static int VALIDATE_MODEL_UPDATES_ID
          id of the VALIDATE_MODEL_UPDATES phase.
 
Constructor Summary
Lifecycle()
           
 
Method Summary
abstract  void addPagePhaseListener(PagePhaseListener listener)
          Deprecated. Use PagePhaseListenerManager.addPagePhaseListener(oracle.adf.controller.v2.lifecycle.PagePhaseListener, java.lang.String, java.util.Set, java.util.Set)
abstract  void execute(java.util.Map envMap)
          Execute all the phases of the Lifecycle and define the order in which each phase is going to be executed.
abstract  PagePhaseListener[] getPagePhaseListeners()
          Deprecated. Use PagePhaseListenerManager.getPagePhaseListenerIds()
static java.lang.String getPhaseName(int id)
          Return the name of the phase given its id.
abstract  void removePagePhaseListener(PagePhaseListener listener)
          Deprecated. Use PagePhaseListenerManager.removePagePhaseListener(String)
 
Methods inherited from class oracle.adf.controller.v2.lifecycle.PagePhaseListenerManager
addPagePhaseListener, getPagePhaseListener, getPagePhaseListenerIds, removePagePhaseListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPhaseNames

public static final java.util.List<java.lang.String> mPhaseNames
A list of all the phase name. This is used for logging purposes.


INIT_CONTEXT

protected static final Lifecycle.Phase INIT_CONTEXT
The initContext phase.


PREPARE_MODEL

protected static final Lifecycle.Phase PREPARE_MODEL
The prepareModel phase.


APPLY_INPUT_VALUES

protected static final Lifecycle.Phase APPLY_INPUT_VALUES
The applyInputValues phase.


VALIDATE_INPUT_VALUES

protected static final Lifecycle.Phase VALIDATE_INPUT_VALUES
The validateInputValues phase.


PROCESS_UPDATE_MODEL

protected static final Lifecycle.Phase PROCESS_UPDATE_MODEL
The processUpdateModel phase.


VALIDATE_MODEL_UPDATES

protected static final Lifecycle.Phase VALIDATE_MODEL_UPDATES
The validateModelUpdates phase.


PROCESS_COMPONENT_EVENTS

protected static final Lifecycle.Phase PROCESS_COMPONENT_EVENTS
The processComponentEvents phase.


METADATA_COMMIT

protected static final Lifecycle.Phase METADATA_COMMIT
The metadataCommit phase.


PREPARE_RENDER

protected static final Lifecycle.Phase PREPARE_RENDER
The prepareRender phase.


INIT_CONTEXT_ID

public static final int INIT_CONTEXT_ID
id of the INIT_CONTEXT phase.


PREPARE_MODEL_ID

public static final int PREPARE_MODEL_ID
id of the PREPARE_MODEL phase.


APPLY_INPUT_VALUES_ID

public static final int APPLY_INPUT_VALUES_ID
id of the APPLY_INPUT_VALUES phase.


VALIDATE_INPUT_VALUES_ID

public static final int VALIDATE_INPUT_VALUES_ID
id of the VALIDATE_INPUT_VALUES phase.


PROCESS_UPDATE_MODEL_ID

public static final int PROCESS_UPDATE_MODEL_ID
id of the PROCESS_UPDATE_MODEL phase.


VALIDATE_MODEL_UPDATES_ID

public static final int VALIDATE_MODEL_UPDATES_ID
id of the VALIDATE_MODEL_UPDATES phase.


PROCESS_COMPONENT_EVENTS_ID

public static final int PROCESS_COMPONENT_EVENTS_ID
id of the PROCESS_COMPONENT_EVENTS phase.


METADATA_COMMIT_ID

public static final int METADATA_COMMIT_ID
id of the METADATA_COMMIT phase.


PREPARE_RENDER_ID

public static final int PREPARE_RENDER_ID
id of the PREPARE_RENDER phase.

Constructor Detail

Lifecycle

public Lifecycle()
Method Detail

addPagePhaseListener

public abstract void addPagePhaseListener(PagePhaseListener listener)
Deprecated. Use PagePhaseListenerManager.addPagePhaseListener(oracle.adf.controller.v2.lifecycle.PagePhaseListener, java.lang.String, java.util.Set, java.util.Set)

Add a new PagePhaseListener to the set of registered listeners.

The PagePhaseListener will be notified of each phase with an event before and an event after the execution of the phase.


removePagePhaseListener

public abstract void removePagePhaseListener(PagePhaseListener listener)
Deprecated. Use PagePhaseListenerManager.removePagePhaseListener(String)

Deregister an existing PagePhaseListener instance.


getPagePhaseListeners

public abstract PagePhaseListener[] getPagePhaseListeners()
Deprecated. Use PagePhaseListenerManager.getPagePhaseListenerIds()

Return the array of registred PagePhaseListener for this instance of the Lifecycle.


execute

public abstract void execute(java.util.Map envMap)
                      throws java.lang.Exception

Execute all the phases of the Lifecycle and define the order in which each phase is going to be executed.

The current environment is passed anonymously, it contain data the Lifecycle will use to build the LifecycleContext.

Throws:
java.lang.Exception

getPhaseName

public static final java.lang.String getPhaseName(int id)
Return the name of the phase given its id.

Parameters:
id - phase id
Returns:
the phase name

Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
11g Release 1 (11.1.1.4.0)

E10652-05

Copyright © 1997, 2011, Oracle. All rights reserved.