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 javax.faces.context.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(javax.faces.context.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!
 javax.faces.application.Application getApplication()
           
 javax.el.ELContext getELContext()
           
 javax.faces.context.ExternalContext getExternalContext()
           
 javax.faces.render.RenderKit getRenderKit()
           
 javax.faces.component.UIViewRoot getViewRoot()
           
 void release()
          Releases the instance fields on FacesContextImplBase.
 void setViewRoot(javax.faces.component.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(javax.faces.context.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 javax.faces.context.FacesContext

getExternalContext

public final javax.faces.context.ExternalContext getExternalContext()
Specified by:
getExternalContext in class javax.faces.context.FacesContext

getApplication

public final javax.faces.application.Application getApplication()
Specified by:
getApplication in class javax.faces.context.FacesContext

getELContext

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

getViewRoot

public javax.faces.component.UIViewRoot getViewRoot()
Specified by:
getViewRoot in class javax.faces.context.FacesContext

setViewRoot

public final void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
Specified by:
setViewRoot in class javax.faces.context.FacesContext

getRenderKit

public final javax.faces.render.RenderKit getRenderKit()
Specified by:
getRenderKit in class javax.faces.context.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.