public class SynchronousViewLifecycleProcessor extends ViewLifecycleProcessorBase
Constructor and Description |
---|
SynchronousViewLifecycleProcessor(ViewLifecycle lifecycle)
Creates a new synchronous processor for a lifecycle.
|
Modifier and Type | Method and Description |
---|---|
ViewLifecyclePhase |
getActivePhase()
Gets the phase actively being processing on the current thread.
|
ExpressionEvaluator |
getExpressionEvaluator()
Returns an instance of
ExpressionEvaluator that can be
used for evaluating expressions contained on the view. |
LifecycleRenderingContext |
getRenderingContext()
Gets a thread-local rending context for invoking FreeMarker operations on the current thread.
|
void |
offerPendingPhase(ViewLifecyclePhase pendingPhase)
Queues a lifecycle phase to be processed within the lifecycle associated with this processor.
|
void |
performPhase(ViewLifecyclePhase initialPhase)
Performs a lifecycle phase according to this processor's semantics, blocking until the phase
has been completely processed.
|
void |
pushPendingPhase(ViewLifecyclePhase phase)
Pushes lifecycle phases to be processed within the lifecycle associated with this processor.
|
getLifecycle
public SynchronousViewLifecycleProcessor(ViewLifecycle lifecycle)
lifecycle
- The lifecycle to process.public void offerPendingPhase(ViewLifecyclePhase pendingPhase)
A phase submitted using this method will be added to the end of the queue, to be processed after all other phases currently in the queue have been submitted.
pendingPhase
- The phase to be processed within the lifecycle associated with this processor.public void pushPendingPhase(ViewLifecyclePhase phase)
A phase submitted using this method will be added to the front of the queue, to be processed by the next available processor.
phase
- The phase to be processed within the lifecycle associated with this processor.public void performPhase(ViewLifecyclePhase initialPhase)
initialPhase
- The initial lifecycle phasepublic ViewLifecyclePhase getActivePhase()
public LifecycleRenderingContext getRenderingContext()
public ExpressionEvaluator getExpressionEvaluator()
ExpressionEvaluator
that can be
used for evaluating expressions contained on the view.
A ExpressionEvaluator must be initialized with a model for expression evaluation. One instance is constructed for the view lifecycle and made available to all components/helpers through this method
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.