public abstract class ApplicationContextChange
extends org.apache.myfaces.trinidad.context.ComponentContextChange
The active lifespan of an ApplicationContextChange begins when it is pushed using
ApplicationContextManager.pushContextChange(ApplicationContextChange) and ends when it is popped using
ApplicationContextManager.popContextChange(). Between these two point in time
the context change may be suspended and resumed any number of times.
| Constructor and Description |
|---|
ApplicationContextChange() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
resume(javax.faces.context.FacesContext context)
Resume a currently suspended context change.
|
abstract void |
suspend(javax.faces.context.FacesContext context)
Suspend the context change and revert back to the application context that existed before this
context change was originally made.
|
public abstract void suspend(javax.faces.context.FacesContext context)
throws IllegalStateException
It's only valid to suspend a context change that's currently active. The implementation of this method does not need to support a call to suspend a context change that's already suspended.
suspend in class org.apache.myfaces.trinidad.context.ComponentContextChangecontext - the FacesContext for the current request.IllegalStateException - if the context change is already suspended.public abstract void resume(javax.faces.context.FacesContext context)
throws IllegalStateException
resume in class org.apache.myfaces.trinidad.context.ComponentContextChangecontext - the FacesContextfor the current request.IllegalStateException - if the context change is not currently suspended.