public abstract class FacesContextImplBase extends FacesContext
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_released |
| Constructor and Description |
|---|
FacesContextImplBase(ExternalContext externalContext,
ExternalContext defaultExternalContext)
Base constructor.
|
FacesContextImplBase(ExternalContext externalContext,
ExternalContext 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
ExternalContext.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! |
protected FacesContext |
getCurrentFacesContext() |
javax.el.ELContext |
getELContext() |
ExceptionHandler |
getExceptionHandler() |
ExternalContext |
getExternalContext() |
char |
getNamingContainerSeparatorChar() |
RenderKit |
getRenderKit() |
List<String> |
getResourceLibraryContracts() |
UIViewRoot |
getViewRoot() |
boolean |
isProcessingEvents() |
boolean |
isReleased() |
void |
purgeFacesContext() |
void |
release()
Releases the instance fields on FacesContextImplBase.
|
void |
setExceptionHandler(ExceptionHandler exceptionHandler) |
void |
setProcessingEvents(boolean processingEvents) |
void |
setResourceLibraryContracts(List<String> contracts) |
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, validationFailedpublic FacesContextImplBase(ExternalContext externalContext, ExternalContext defaultExternalContext)
public FacesContextImplBase(ExternalContext externalContext, ExternalContext defaultExternalContext, ApplicationFactory applicationFactory, RenderKitFactory renderKitFactory)
public void release()
release in class FacesContextpublic boolean isReleased()
isReleased in class FacesContextpublic final ExternalContext getExternalContext()
getExternalContext in class FacesContextpublic final Application getApplication()
getApplication in class FacesContextpublic void purgeFacesContext()
public final ExceptionHandler getExceptionHandler()
getExceptionHandler in class FacesContextpublic final void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler in class FacesContextpublic final boolean isProcessingEvents()
isProcessingEvents in class FacesContextpublic final void setProcessingEvents(boolean processingEvents)
setProcessingEvents in class FacesContextpublic final javax.el.ELContext getELContext()
getELContext in class FacesContextpublic 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
ExternalContext.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 FacesContextIllegalStateException - if the current context already is released!public UIViewRoot getViewRoot()
getViewRoot in class FacesContextpublic final void setViewRoot(UIViewRoot viewRoot)
setViewRoot in class FacesContextpublic final RenderKit getRenderKit()
getRenderKit in class FacesContextpublic List<String> getResourceLibraryContracts()
getResourceLibraryContracts in class FacesContextpublic void setResourceLibraryContracts(List<String> contracts)
setResourceLibraryContracts in class FacesContextpublic char getNamingContainerSeparatorChar()
getNamingContainerSeparatorChar in class FacesContextprotected final void assertNotReleased()
protected FacesContext getCurrentFacesContext()
Copyright © 2022 The Apache Software Foundation. All rights reserved.