Class PhaseAction

java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, org.ocpsoft.rewrite.config.Operation, org.ocpsoft.rewrite.config.OperationBuilder

public abstract class PhaseAction extends PhaseOperation<PhaseAction>
An Operation that invokes an action before or after a given JavaServer Faces PhaseId. Has a Weighted.priority() of 0.
Author:
Lincoln Baxter, III
  • Method Details

    • retrieveFrom

      public static PhaseAction retrieveFrom(org.ocpsoft.rewrite.bind.Retrieval retrieval)
      Create an Operation that invokes the given Retrieval and processes InvocationResultHandler instances 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 an Operation that invokes Submission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), and uses the result of the given Retrieval.retrieve(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) as the value for this submission. Process InvocationResultHandler instances 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: PhaseOperation
      Perform the wrapped operation before or after the specified phases.
      Specified by:
      performOperation in class PhaseOperation<PhaseAction>