public class InitializeComponentPhase extends ViewLifecyclePhaseBase
During the initialize phase each component of the tree is invoked to setup state based on the configuration and request options.
The initialize phase is only called once per View
lifecycle
Note the View
instance also contains the context Map that was created based on the
parameters sent to the view service
Constructor and Description |
---|
InitializeComponentPhase() |
Modifier and Type | Method and Description |
---|---|
String |
getEndViewStatus()
Gets the expected view status after phase execution.
|
ViewLifecycle.LifecycleEvent |
getEventToNotify()
Gets the event to notify on completion.
|
String |
getStartViewStatus()
Gets the expected view status prior to phase execution.
|
String |
getViewPhase()
Gets the view lifecycle phase constant that corresponds to this phase processing task.
|
protected void |
initializePendingTasks(Queue<ViewLifecycleTask<?>> tasks)
Queues initialization phase tasks.
|
protected void |
initializeSkipLifecyclePendingTasks(Queue<ViewLifecycleTask<?>> tasks)
Initializes queue of pending tasks phases that need to be executed when skipping the full lifecycle.
|
protected ViewLifecyclePhase |
initializeSuccessor(LifecycleElement nestedElement,
String nestedPath,
Component parent)
Initializes a successor of this phase for a given nested element.
|
getCurrentTask, getDepth, getElement, getModel, getNestedPropertiesForRefreshPath, getParent, getParentPath, getPredecessor, getRefreshPaths, getViewPath, initializeAllLifecycleSuccessors, initializeRefreshPathSuccessors, initializeSuccessors, isComplete, isProcessed, notifyCompleted, prepare, processSuccessors, recycle, run, setViewPath, shouldSkipLifecycle, toString, trace, validateBeforeProcessing, verifyCompleted
public InitializeComponentPhase()
public String getViewPhase()
UifConstants.ViewPhases
public String getStartViewStatus()
public String getEndViewStatus()
public ViewLifecycle.LifecycleEvent getEventToNotify()
ViewLifecycle.LifecycleEvent
protected void initializeSkipLifecyclePendingTasks(Queue<ViewLifecycleTask<?>> tasks)
initializeSkipLifecyclePendingTasks
in class ViewLifecyclePhaseBase
tasks
- The queue of tasks to performprotected void initializePendingTasks(Queue<ViewLifecycleTask<?>> tasks)
This method will be called before during processing to determine which tasks to perform at this phase.
initializePendingTasks
in class ViewLifecyclePhaseBase
tasks
- The queue of tasks to perform.protected ViewLifecyclePhase initializeSuccessor(LifecycleElement nestedElement, String nestedPath, Component parent)
initializeSuccessor
in class ViewLifecyclePhaseBase
nestedElement
- The lifecycle element.nestedPath
- The path, relative to the parent element.parent
- The parent component of the nested element.Copyright © 2005–2014 The Kuali Foundation. All rights reserved.