org.apache.myfaces.context.servlet
Class FacesContextImplBase

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.apache.myfaces.context.servlet.FacesContextImplBase
Direct Known Subclasses:
StartupFacesContextImpl

public abstract class FacesContextImplBase
extends FacesContext

Provides a base implementation of the FacesContext for the use in FacesContextImpl and StartupFacesContextImpl.

Version:
$Revision: 963629 $ $Date: 2010-07-13 04:29:07 -0500 (Mar, 13 Jul 2010) $
Author:
Jakob Korherr (latest modification by $Author: jakobk $)

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()
           
 javax.el.ELContext getELContext()
           
 ExternalContext getExternalContext()
           
 RenderKit getRenderKit()
           
 UIViewRoot getViewRoot()
           
 void release()
          Releases the instance fields on FacesContextImplBase.
 void setViewRoot(UIViewRoot viewRoot)
           
 
Methods inherited from class javax.faces.context.FacesContext
addMessage, getClientIdsWithMessages, getCurrentInstance, getMaximumSeverity, getMessages, getMessages, getRenderResponse, getResponseComplete, getResponseStream, getResponseWriter, renderResponse, responseComplete, setCurrentInstance, setResponseStream, setResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_released

protected boolean _released
Constructor Detail

FacesContextImplBase

public FacesContextImplBase(ExternalContext externalContext,
                            ReleaseableExternalContext defaultExternalContext)
Base constructor. Calls FacesContext.setCurrentInstance(this);

Method Detail

release

public void release()
Releases the instance fields on FacesContextImplBase. Must be called by sub-classes, when overriding it!

Specified by:
release in class FacesContext

getExternalContext

public final ExternalContext getExternalContext()
Specified by:
getExternalContext in class FacesContext

getApplication

public final Application getApplication()
Specified by:
getApplication in class FacesContext

getELContext

public final javax.el.ELContext getELContext()
Overrides:
getELContext in class FacesContext

getViewRoot

public UIViewRoot getViewRoot()
Specified by:
getViewRoot in class FacesContext

setViewRoot

public final void setViewRoot(UIViewRoot viewRoot)
Specified by:
setViewRoot in class FacesContext

getRenderKit

public final RenderKit getRenderKit()
Specified by:
getRenderKit in class FacesContext

assertNotReleased

protected final void assertNotReleased()
has to be thrown in many of the methods if the method is called after the instance has been released!



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.