|
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.context.LifecycleContext
LifecycleContext is the base class for all context classes used in the ADF Lifecycle. It contains all the state information that will be kept during the execution of the ADF Lifecycle. It is passed as a parameter of each phase execution.
This context object lives for the duration of the current Lifecycle.
| Field Summary | |
protected java.util.Map |
envMapThe map used to store the context. |
static java.lang.String |
PAGE_LIFECYCLE_KEYKey used to store the PageLifecycle instance in the context map. |
| Constructor Summary | |
LifecycleContext(java.util.Map envMap)Constructor using a Map. |
|
| Method Summary | |
RegionBinding |
getBindingContainer()Retrieve the RegionBinding instance for the current page. |
BindingContext |
getBindingContext()Retrieve the BindingContext object for the current session. |
Environment |
getEnvironment()Retrieve the anonymous environment. |
static LifecycleContext |
getInstance(java.util.Map envMap)Instanciate the LifecycleContext associated with a PageLifecycle. |
static LifecycleContext |
getInstance(java.util.Map envMap, PageLifecycle lifecycle)Instanciate the LifecycleContext associated with a PageLifecycle. |
PageLifecycle |
getPageController()Retrieve the PageController from the context map. |
PageLifecycle |
getPageLifecycle()Retrieve the PageLifecycle object from the context map. |
PagePhaseListener |
getPagePhaseListener()Retrieve the PagePhaseListener from the context map. |
protected java.lang.String |
getPath()Retrieve the path info for the current page. |
boolean |
getPrepareRender()Return true if the prepareRender method has been called. |
protected void |
initControllerClass()Initialize the PageController instance that will be used during this PageLifecycle. |
void |
prepareRender()Indicate to the Lifecycle that the next phase to be executed should be PREPARE_RENDER, by-passing any other phase left in the lifecycle. |
void |
setPageController(PageLifecycle lifeCycle)Store the PageController Object in the Lifecycle context map. |
void |
setPageLifecycle(PageLifecycle lifeCycle)Store a PageLifecycle object in the context map. |
void |
setPagePhaseListener(PagePhaseListener pagePhaseListener)Store the PagePhaseListener Object in the Lifecycle context map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.util.Map envMap
public static final java.lang.String PAGE_LIFECYCLE_KEY
| Constructor Detail |
public LifecycleContext(java.util.Map envMap)
| Method Detail |
public static LifecycleContext getInstance(java.util.Map envMap)
throws java.lang.Exception
envMap - map containing the lifecycle objectjava.lang.Exception
public static LifecycleContext getInstance(java.util.Map envMap,
PageLifecycle lifecycle)
throws java.lang.Exception
envMap - The map of properties that will be used to initialize the context.lifecycle - The PageLifecycle instance.java.lang.Exceptionpublic Environment getEnvironment()
ADFContext.getEnvironment()public BindingContext getBindingContext()
public RegionBinding getBindingContainer()
protected java.lang.String getPath()
public PageLifecycle getPageLifecycle()
public void setPageLifecycle(PageLifecycle lifeCycle)
lifeCycle - Lifecycle object to use for the current request.public PageLifecycle getPageController()
public void setPageController(PageLifecycle lifeCycle)
lifeCycle - PageLifecycle object to use for the current request.public PagePhaseListener getPagePhaseListener()
public void setPagePhaseListener(PagePhaseListener pagePhaseListener)
pagePhaseListener - PagePhaseListener object to use for the current request.public boolean getPrepareRender()
Return true if the prepareRender method has been called.
public void prepareRender()
Indicate to the Lifecycle that the next phase to be executed should be PREPARE_RENDER, by-passing any other phase left in the lifecycle.
protected void initControllerClass()
PageController instance that will be used during this PageLifecycle. First retrieve the instance, then store it in the context map. The object to use is specified using the ControllerClass property of the PageDefinition xml file. This object can be specified in one of two ways:
PagePhaseListener, instanciate it and store it in the PagePhaseListener property of the context.
|
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 | ||||||||||