Package org.ocpsoft.rewrite.faces.config
Class PhaseAction
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.faces.config.PhaseOperation<PhaseAction>
org.ocpsoft.rewrite.faces.config.PhaseAction
- All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted,org.ocpsoft.rewrite.config.Operation,org.ocpsoft.rewrite.config.OperationBuilder
An
Operation that invokes an action before or after a given JavaServer Faces PhaseId. Has a
Weighted.priority() of 0.- Author:
- Lincoln Baxter, III
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ocpsoft.rewrite.faces.config.PhaseOperation
PhaseOperation.DeferredOperation -
Method Summary
Modifier and TypeMethodDescriptionvoidperformOperation(HttpServletRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context) Perform the wrapped operation before or after the specified phases.intpriority()static PhaseActionretrieveFrom(org.ocpsoft.rewrite.bind.Retrieval retrieval) Create anOperationthat invokes the givenRetrievaland processesInvocationResultHandlerinstances on the result value (if any).static PhaseActionsubmitTo(org.ocpsoft.rewrite.bind.Submission to, org.ocpsoft.rewrite.bind.Retrieval from) Create anOperationthat invokesSubmission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), and uses the result of the givenRetrieval.retrieve(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext)as the value for this submission.Methods inherited from class org.ocpsoft.rewrite.faces.config.PhaseOperation
after, before, enqueue, enqueue, getAfterPhases, getBeforePhases, getSortedPhaseOperations, performHttpMethods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
performMethods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Method Details
-
retrieveFrom
Create anOperationthat invokes the givenRetrievaland processesInvocationResultHandlerinstances on the result value (if any).By default, this action is invoked after
PhaseId.RESTORE_VIEW -
submitTo
public static PhaseAction submitTo(org.ocpsoft.rewrite.bind.Submission to, org.ocpsoft.rewrite.bind.Retrieval from) Create anOperationthat invokesSubmission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), and uses the result of the givenRetrieval.retrieve(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext)as the value for this submission. ProcessInvocationResultHandlerinstances on the result value (if any).By default, this action is invoked after
PhaseId.RESTORE_VIEW -
priority
public int priority() -
performOperation
public void performOperation(HttpServletRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context) Description copied from class:PhaseOperationPerform the wrapped operation before or after the specified phases.- Specified by:
performOperationin classPhaseOperation<PhaseAction>
-