rewrite-integration-faces 2.0.0.Alpha3

org.ocpsoft.rewrite.faces.config
Class PhaseAction

java.lang.Object
  extended by org.ocpsoft.rewrite.config.DefaultOperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by org.ocpsoft.rewrite.faces.config.PhaseOperation<PhaseAction>
              extended by org.ocpsoft.rewrite.faces.config.PhaseAction
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, ConfigurationElement, Operation, OperationBuilder

public class PhaseAction
extends PhaseOperation<PhaseAction>

Invoke 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.config.DefaultOperationBuilder
DefaultOperationBuilder.NoOp
 
Method Summary
 void performOperation(HttpServletRewrite event, EvaluationContext context)
          Perform operation before or after the specified phases.
 int priority()
           
static PhaseAction retrieveFrom(Retrieval retrieval)
          Invoke the given Retrieval and process InvocationResultHandler instances on the result value (if any.)
static PhaseAction submitTo(Submission to, Retrieval from)
          Invoke Submission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), use the result of the given Retrieval.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, getContext, getEvent, getSortedPhaseOperations, performHttp
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform
 
Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and, create, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

retrieveFrom

public static PhaseAction retrieveFrom(Retrieval retrieval)
Invoke the given Retrieval and process InvocationResultHandler instances on the result value (if any.)

By default, this action is invoked after PhaseId.RESTORE_VIEW


submitTo

public static PhaseAction submitTo(Submission to,
                                   Retrieval from)
Invoke Submission.submit(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext, Object), use 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,
                             EvaluationContext context)
Description copied from class: PhaseOperation
Perform operation before or after the specified phases.

Specified by:
performOperation in class PhaseOperation<PhaseAction>

rewrite-integration-faces 2.0.0.Alpha3

Copyright © 2013 OCPsoft. All Rights Reserved.