public class ViewLifecyclePhaseBuilderBase extends Object implements ViewLifecyclePhaseBuilder
Constructor and Description |
---|
ViewLifecyclePhaseBuilderBase() |
Modifier and Type | Method and Description |
---|---|
protected ViewLifecyclePhase |
buildApplyModelPhase()
Creates an instance of the
ApplyModelComponentPhase phase with configured tasks. |
protected ViewLifecyclePhase |
buildFinalizePhase()
Creates an instance of the
FinalizeComponentPhase phase with configured tasks. |
protected ViewLifecyclePhase |
buildInitializePhase()
Creates an instance of the
InitializeComponentPhase phase with configured tasks. |
ViewLifecyclePhase |
buildPhase(String viewPhase,
LifecycleElement element,
Component parent,
String parentPath,
List<String> refreshPaths)
Creates a lifecycle phase instance for a specific component in the current lifecycle.
|
ViewLifecyclePhase |
buildPhase(View view,
String viewPhase,
List<String> refreshPaths)
Creates a lifecycle phase instance for the given view.
|
protected ViewLifecyclePhase |
buildPreProcessPhase()
Creates an instance of the
PreProcessElementPhase phase with configured tasks. |
protected ViewLifecyclePhase |
buildRenderPhase()
Creates an instance of the
RenderComponentPhase phase with configured tasks. |
protected ViewLifecyclePhase |
finishBuildPhase(ViewLifecyclePhase phase)
Determines if the previous phases have been run for the given element and if not backs up
until it finds the first phase we need to run.
|
protected ViewLifecyclePhase |
getPhaseInstance(String viewPhase)
Build a phase instance for processing the given view phase.
|
protected static String |
getPreviousViewPhase(ViewLifecyclePhase phase)
Return the previous view phase, for automatic phase spawning.
|
public ViewLifecyclePhaseBuilderBase()
public ViewLifecyclePhase buildPhase(View view, String viewPhase, List<String> refreshPaths)
buildPhase
in interface ViewLifecyclePhaseBuilder
view
- view instance the phase should be built forviewPhase
- View phase to build an instance forViewLifecycle.getView()
public ViewLifecyclePhase buildPhase(String viewPhase, LifecycleElement element, Component parent, String parentPath, List<String> refreshPaths)
buildPhase
in interface ViewLifecyclePhaseBuilder
viewPhase
- view phase to build an instance forelement
- lifecycle element to build an instance forparent
- parent componentparentPath
- path relative to the parent component referring to the lifecycle elementprotected ViewLifecyclePhase finishBuildPhase(ViewLifecyclePhase phase)
phase
- phase being requestedprotected static String getPreviousViewPhase(ViewLifecyclePhase phase)
protected ViewLifecyclePhase getPhaseInstance(String viewPhase)
viewPhase
- name of the view phase to returnprotected ViewLifecyclePhase buildPreProcessPhase()
PreProcessElementPhase
phase with configured tasks.protected ViewLifecyclePhase buildInitializePhase()
InitializeComponentPhase
phase with configured tasks.protected ViewLifecyclePhase buildApplyModelPhase()
ApplyModelComponentPhase
phase with configured tasks.protected ViewLifecyclePhase buildFinalizePhase()
FinalizeComponentPhase
phase with configured tasks.protected ViewLifecyclePhase buildRenderPhase()
RenderComponentPhase
phase with configured tasks.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.