public abstract class FacesContextImplBase extends FacesContext
Modifier and Type | Field and Description |
---|---|
protected boolean |
_released |
Constructor and Description |
---|
FacesContextImplBase(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext)
Base constructor.
|
FacesContextImplBase(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext,
ApplicationFactory applicationFactory,
RenderKitFactory renderKitFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNotReleased()
has to be thrown in many of the methods if the method is called after the instance has been released!
|
Application |
getApplication() |
Map<Object,Object> |
getAttributes()
Returns a mutable map of attributes associated with this faces context when
FacesContext.release is called the map must be cleared!
Note this map is not associated with the request map the request map still is accessible via the
FacesContext.getExternalContext.getRequestMap method!
Also the scope is different to the request map, this map has the scope of the context, and is cleared once the
release method on the context is called!
Also the map does not cause any events according to the spec! |
javax.el.ELContext |
getELContext() |
ExceptionHandler |
getExceptionHandler() |
ExternalContext |
getExternalContext() |
RenderKit |
getRenderKit() |
UIViewRoot |
getViewRoot() |
boolean |
isProcessingEvents() |
void |
release()
Releases the instance fields on FacesContextImplBase.
|
void |
setExceptionHandler(ExceptionHandler exceptionHandler) |
void |
setProcessingEvents(boolean processingEvents) |
void |
setViewRoot(UIViewRoot viewRoot) |
addMessage, getClientIdsWithMessages, getCurrentInstance, getCurrentPhaseId, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getPartialViewContext, getRenderResponse, getResponseComplete, getResponseStream, getResponseWriter, isPostback, isProjectStage, isValidationFailed, renderResponse, responseComplete, setCurrentInstance, setCurrentPhaseId, setResponseStream, setResponseWriter, validationFailed
public FacesContextImplBase(ExternalContext externalContext, ReleaseableExternalContext defaultExternalContext)
public FacesContextImplBase(ExternalContext externalContext, ReleaseableExternalContext defaultExternalContext, ApplicationFactory applicationFactory, RenderKitFactory renderKitFactory)
public void release()
release
in class FacesContext
public final ExternalContext getExternalContext()
getExternalContext
in class FacesContext
public final Application getApplication()
getApplication
in class FacesContext
public final ExceptionHandler getExceptionHandler()
getExceptionHandler
in class FacesContext
public final void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler
in class FacesContext
public final boolean isProcessingEvents()
isProcessingEvents
in class FacesContext
public final void setProcessingEvents(boolean processingEvents)
setProcessingEvents
in class FacesContext
public final javax.el.ELContext getELContext()
getELContext
in class FacesContext
public final Map<Object,Object> getAttributes()
FacesContext.release
is called the map must be cleared!
Note this map is not associated with the request map the request map still is accessible via the
FacesContext.getExternalContext.getRequestMap
method!
Also the scope is different to the request map, this map has the scope of the context, and is cleared once the
release method on the context is called!
Also the map does not cause any events according to the spec!getAttributes
in class FacesContext
IllegalStateException
- if the current context already is released!public UIViewRoot getViewRoot()
getViewRoot
in class FacesContext
public final void setViewRoot(UIViewRoot viewRoot)
setViewRoot
in class FacesContext
public final RenderKit getRenderKit()
getRenderKit
in class FacesContext
protected final void assertNotReleased()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.