rewrite-integration-faces 1.0.2.Final

org.ocpsoft.rewrite.faces.config
Class PhaseOperation<T extends PhaseOperation<T>>

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<T>
All Implemented Interfaces:
org.ocpsoft.common.pattern.Weighted, Operation
Direct Known Subclasses:
PhaseAction, PhaseInjection

public abstract class PhaseOperation<T extends PhaseOperation<T>>
extends HttpOperation
implements org.ocpsoft.common.pattern.Weighted

This class encapsulates another operation that should be performed during the JSF lifecycle

Author:
Fabien Marsaud, Lincoln Baxter, III

Constructor Summary
PhaseOperation()
           
 
Method Summary
 OperationBuilder after(javax.faces.event.PhaseId... phases)
           
 OperationBuilder before(javax.faces.event.PhaseId... phases)
           
static PhaseOperation<?> enqueue(Operation operation)
           
static PhaseOperation<?> enqueue(Operation operation, int priority)
          Enqueue an Operation to be performed before or after one or many JavaServer Faces life-cycle phases, specified via invoking before(PhaseId...) or after(PhaseId...).
 java.util.Set<javax.faces.event.PhaseId> getAfterPhases()
           
 java.util.Set<javax.faces.event.PhaseId> getBeforePhases()
           
 EvaluationContext getContext()
           
 HttpServletRewrite getEvent()
           
static java.util.ArrayList<PhaseOperation<?>> getSortedPhaseOperations(javax.servlet.http.HttpServletRequest request)
           
 void performHttp(HttpServletRewrite event, EvaluationContext context)
          Invoked during the rewrite process, just add "this" to a queue of deferred bindings in the request
abstract  void performOperation(HttpServletRewrite event, EvaluationContext context)
           
 
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
 
Methods inherited from interface org.ocpsoft.common.pattern.Weighted
priority
 

Constructor Detail

PhaseOperation

public PhaseOperation()
Method Detail

performOperation

public abstract void performOperation(HttpServletRewrite event,
                                      EvaluationContext context)

getBeforePhases

public java.util.Set<javax.faces.event.PhaseId> getBeforePhases()

getAfterPhases

public java.util.Set<javax.faces.event.PhaseId> getAfterPhases()

before

public OperationBuilder before(javax.faces.event.PhaseId... phases)

after

public OperationBuilder after(javax.faces.event.PhaseId... phases)

performHttp

public final void performHttp(HttpServletRewrite event,
                              EvaluationContext context)
Invoked during the rewrite process, just add "this" to a queue of deferred bindings in the request

Specified by:
performHttp in class HttpOperation

getSortedPhaseOperations

public static java.util.ArrayList<PhaseOperation<?>> getSortedPhaseOperations(javax.servlet.http.HttpServletRequest request)

getEvent

public HttpServletRewrite getEvent()

getContext

public EvaluationContext getContext()

enqueue

public static PhaseOperation<?> enqueue(Operation operation)

enqueue

public static PhaseOperation<?> enqueue(Operation operation,
                                        int priority)
Enqueue an Operation to be performed before or after one or many JavaServer Faces life-cycle phases, specified via invoking before(PhaseId...) or after(PhaseId...).


rewrite-integration-faces 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.