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, validationFailed
public FacesContextImplBase(ExternalContext externalContext, ExternalContext defaultExternalContext)
public FacesContextImplBase(ExternalContext externalContext, ExternalContext defaultExternalContext, ApplicationFactory applicationFactory, RenderKitFactory renderKitFactory)
public void release()
release
in class FacesContext
public boolean isReleased()
isReleased
in class FacesContext
public final ExternalContext getExternalContext()
getExternalContext
in class FacesContext
public final Application getApplication()
getApplication
in class FacesContext
public void purgeFacesContext()
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
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 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
public List<String> getResourceLibraryContracts()
getResourceLibraryContracts
in class FacesContext
public void setResourceLibraryContracts(List<String> contracts)
setResourceLibraryContracts
in class FacesContext
public char getNamingContainerSeparatorChar()
getNamingContainerSeparatorChar
in class FacesContext
protected final void assertNotReleased()
protected FacesContext getCurrentFacesContext()
Copyright © 2021 The Apache Software Foundation. All rights reserved.