|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.context.FacesContext
org.apache.myfaces.context.servlet.FacesContextImplBase
public abstract class FacesContextImplBase
Provides a base implementation of the FacesContext for the use in FacesContextImpl and StartupFacesContextImpl.
Field Summary | |
---|---|
protected boolean |
_released
|
Constructor Summary | |
---|---|
FacesContextImplBase(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext)
Base constructor. |
Method Summary | |
---|---|
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()
|
boolean |
isReleased()
|
void |
release()
Releases the instance fields on FacesContextImplBase. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
|
void |
setProcessingEvents(boolean processingEvents)
|
void |
setViewRoot(UIViewRoot viewRoot)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean _released
Constructor Detail |
---|
public FacesContextImplBase(ExternalContext externalContext, ReleaseableExternalContext defaultExternalContext)
Method Detail |
---|
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 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |