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 Summary
Constructors Constructor Description JspApplicationContextImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addELContextListener(ELContextListener listener)
Registers anELContextListener
that will be notified whenever a newELContext
is created.void
addELResolver(ELResolver resolver)
Adds anELResolver
to the chain of EL variable and property management within JSP pages and Tag files.ELContextImpl
createELContext(JspContext context)
protected void
fireListeners(ELContext elContext)
ExpressionFactory
getExpressionFactory()
Returns the JSP container'sExpressionFactory
implementation for EL use.static JspApplicationContextImpl
getInstance(ServletContext context)
-
-
-
Method Detail
-
addELContextListener
public void addELContextListener(ELContextListener listener)
Description copied from interface:jakarta.servlet.jsp.JspApplicationContext
Registers anELContextListener
that will be notified whenever a newELContext
is created.At the very least, any
ELContext
instantiated will have reference to theJspContext
underJspContext.class
.- Specified by:
addELContextListener
in interfaceJspApplicationContext
- Parameters:
listener
- The listener to add
-
getInstance
public static JspApplicationContextImpl getInstance(ServletContext context)
-
createELContext
public ELContextImpl createELContext(JspContext context)
-
fireListeners
protected void fireListeners(ELContext elContext)
-
addELResolver
public void addELResolver(ELResolver resolver) throws java.lang.IllegalStateException
Description copied from interface:jakarta.servlet.jsp.JspApplicationContext
Adds an
ELResolver
to 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
ELResolver
instances registered with this methodMapELResolver
ListELResolver
ArrayELResolver
BeanELResolver
ScopedAttributeELResolver
- Specified by:
addELResolver
in interfaceJspApplicationContext
- Parameters:
resolver
- an additional resolver- Throws:
java.lang.IllegalStateException
- if called after the application'sServletContextListeners
have been initialized.
-
getExpressionFactory
public ExpressionFactory getExpressionFactory()
Description copied from interface:jakarta.servlet.jsp.JspApplicationContext
Returns the JSP container's
ExpressionFactory
implementation for EL use.- Specified by:
getExpressionFactory
in interfaceJspApplicationContext
- Returns:
- an
ExpressionFactory
implementation
-
-