Package org.apache.jasper.runtime
Class JspApplicationContextImpl
- java.lang.Object
- 
- org.apache.jasper.runtime.JspApplicationContextImpl
 
- 
- All Implemented Interfaces:
- JspApplicationContext
 
 public class JspApplicationContextImpl extends java.lang.Object implements JspApplicationContext Implementation of JspApplicationContext- Author:
- Jacob Hookom
 
- 
- 
Constructor SummaryConstructors Constructor Description JspApplicationContextImpl()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddELContextListener(ELContextListener listener)Registers anELContextListenerthat will be notified whenever a newELContextis created.voidaddELResolver(ELResolver resolver)Adds anELResolverto the chain of EL variable and property management within JSP pages and Tag files.ELContextImplcreateELContext(JspContext context)protected voidfireListeners(ELContext elContext)ExpressionFactorygetExpressionFactory()Returns the JSP container'sExpressionFactoryimplementation for EL use.static JspApplicationContextImplgetInstance(ServletContext context)
 
- 
- 
- 
Method Detail- 
addELContextListenerpublic void addELContextListener(ELContextListener listener) Description copied from interface:javax.servlet.jsp.JspApplicationContextRegisters anELContextListenerthat will be notified whenever a newELContextis created.At the very least, any ELContextinstantiated will have reference to theJspContextunderJspContext.class.- Specified by:
- addELContextListenerin interface- JspApplicationContext
- Parameters:
- listener- The listener to add
 
 - 
getInstancepublic static JspApplicationContextImpl getInstance(ServletContext context) 
 - 
createELContextpublic ELContextImpl createELContext(JspContext context) 
 - 
fireListenersprotected void fireListeners(ELContext elContext) 
 - 
addELResolverpublic void addELResolver(ELResolver resolver) throws java.lang.IllegalStateException Description copied from interface:javax.servlet.jsp.JspApplicationContextAdds an ELResolverto the chain of EL variable and property management within JSP pages and Tag files.JSP has a default set of ELResolvers to chain for all EL evaluation: - ImplicitObjectELResolver
- ELResolverinstances registered with this method
- MapELResolver
- ListELResolver
- ArrayELResolver
- BeanELResolver
- ScopedAttributeELResolver
 - Specified by:
- addELResolverin interface- JspApplicationContext
- Parameters:
- resolver- an additional resolver
- Throws:
- java.lang.IllegalStateException- if called after the application's- ServletContextListenershave been initialized.
 
 - 
getExpressionFactorypublic ExpressionFactory getExpressionFactory() Description copied from interface:javax.servlet.jsp.JspApplicationContextReturns the JSP container's ExpressionFactoryimplementation for EL use.- Specified by:
- getExpressionFactoryin interface- JspApplicationContext
- Returns:
- an ExpressionFactoryimplementation
 
 
- 
 
-