org.ocpsoft.rewrite.faces.config
Class PhaseOperation<T extends PhaseOperation<T>>
java.lang.Object
org.ocpsoft.rewrite.config.OperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
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
| 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 |
PhaseOperation
public PhaseOperation()
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...).
Copyright © 2012 OCPsoft. All Rights Reserved.