Class SynchronousViewLifecycleProcessor
java.lang.Object
org.kuali.rice.krad.uif.lifecycle.ViewLifecycleProcessorBase
org.kuali.rice.krad.uif.lifecycle.SynchronousViewLifecycleProcessor
- All Implemented Interfaces:
ViewLifecycleProcessor
Single-threaded view lifecycle processor implementation.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionSynchronousViewLifecycleProcessor(ViewLifecycle lifecycle) Creates a new synchronous processor for a lifecycle. -
Method Summary
Modifier and TypeMethodDescriptionGets the phase actively being processing on the current thread.Returns an instance ofExpressionEvaluatorthat can be used for evaluating expressions contained on the view.Gets a thread-local rending context for invoking FreeMarker operations on the current thread.voidofferPendingPhase(ViewLifecyclePhase pendingPhase) Queues a lifecycle phase to be processed within the lifecycle associated with this processor.voidperformPhase(ViewLifecyclePhase initialPhase) Performs a lifecycle phase according to this processor's semantics, blocking until the phase has been completely processed.voidPushes lifecycle phases to be processed within the lifecycle associated with this processor.Methods inherited from class org.kuali.rice.krad.uif.lifecycle.ViewLifecycleProcessorBase
getLifecycle
-
Constructor Details
-
SynchronousViewLifecycleProcessor
Creates a new synchronous processor for a lifecycle.- Parameters:
lifecycle- The lifecycle to process.
-
-
Method Details
-
offerPendingPhase
Queues a lifecycle phase to be processed within the lifecycle associated with this processor.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.
- Parameters:
pendingPhase- The phase to be processed within the lifecycle associated with this processor.
-
pushPendingPhase
Pushes lifecycle phases to be processed within the lifecycle associated with this processor.A phase submitted using this method will be added to the front of the queue, to be processed by the next available processor.
- Parameters:
phase- The phase to be processed within the lifecycle associated with this processor.
-
performPhase
Performs a lifecycle phase according to this processor's semantics, blocking until the phase has been completely processed. Once the initial phase has been completely processed, this method will return.- Parameters:
initialPhase- The initial lifecycle phase
-
getActivePhase
Gets the phase actively being processing on the current thread.- Returns:
- lifecycle phase active on the current thread
-
getRenderingContext
Gets a thread-local rending context for invoking FreeMarker operations on the current thread.- Returns:
- rending context for invoking FreeMarker operations on the current thread
-
getExpressionEvaluator
Returns an instance ofExpressionEvaluatorthat 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
- Returns:
- instance of ExpressionEvaluator
-