|
||||||||||
| 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()
|
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 FacesContextpublic final ExternalContext getExternalContext()
getExternalContext in class FacesContextpublic final Application getApplication()
getApplication in class FacesContextpublic 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
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 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 FacesContextprotected final void assertNotReleased()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||