rewrite-integration-faces 1.0.2.Final

org.ocpsoft.rewrite.faces.config
Class PhaseInjection

java.lang.Object
  extended by org.ocpsoft.rewrite.config.OperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by org.ocpsoft.rewrite.faces.config.PhaseOperation<PhaseInjection>
              extended by org.ocpsoft.rewrite.faces.config.PhaseInjection
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, Binding, Retrieval, Submission, Operation

public class PhaseInjection
extends PhaseOperation<PhaseInjection>
implements Binding

Wraps & holds a param binding till before or after a given JavaServer Faces PhaseId

Author:
Fabien Marsaud

Method Summary
 java.lang.Object convert(Rewrite event, EvaluationContext context, java.lang.Object value)
           
 void performOperation(HttpServletRewrite event, EvaluationContext context)
           
 int priority()
           
 java.lang.Object retrieve(Rewrite event, EvaluationContext context)
           
 java.lang.Object submit(Rewrite event, EvaluationContext context, java.lang.Object value)
           
 boolean supportsRetrieval()
           
 boolean supportsSubmission()
           
 boolean validates(Rewrite event, EvaluationContext context, java.lang.Object value)
           
static PhaseInjection withhold(Binding binding)
          Wraps the Binding into a new PhaseInjection, so as to have it performed duriung the JSF lifecycle By default, the original binding will be performed after PhaseId.RESTORE_VIEW
 
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.OperationBuilder
and
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

priority

public int priority()
Specified by:
priority in interface org.ocpsoft.common.pattern.Weighted

performOperation

public void performOperation(HttpServletRewrite event,
                             EvaluationContext context)
Specified by:
performOperation in class PhaseOperation<PhaseInjection>

withhold

public static PhaseInjection withhold(Binding binding)
Wraps the Binding into a new PhaseInjection, so as to have it performed duriung the JSF lifecycle By default, the original binding will be performed after PhaseId.RESTORE_VIEW


retrieve

public java.lang.Object retrieve(Rewrite event,
                                 EvaluationContext context)
Specified by:
retrieve in interface Retrieval

convert

public java.lang.Object convert(Rewrite event,
                                EvaluationContext context,
                                java.lang.Object value)
Specified by:
convert in interface Submission

validates

public boolean validates(Rewrite event,
                         EvaluationContext context,
                         java.lang.Object value)
Specified by:
validates in interface Submission

submit

public java.lang.Object submit(Rewrite event,
                               EvaluationContext context,
                               java.lang.Object value)
Specified by:
submit in interface Submission

supportsRetrieval

public boolean supportsRetrieval()
Specified by:
supportsRetrieval in interface Binding

supportsSubmission

public boolean supportsSubmission()
Specified by:
supportsSubmission in interface Binding

rewrite-integration-faces 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.