Package org.apache.jasper.runtime
Class JspApplicationContextImpl
java.lang.Object
org.apache.jasper.runtime.JspApplicationContextImpl
- All Implemented Interfaces:
JspApplicationContext
Implementation of JspApplicationContext
- Author:
- Jacob Hookom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.createELContext
(JspContext context) protected void
fireListeners
(ELContext elContext) Returns the JSP container'sExpressionFactory
implementation for EL use.static JspApplicationContextImpl
getInstance
(ServletContext context)
-
Constructor Details
-
JspApplicationContextImpl
public JspApplicationContextImpl()
-
-
Method Details
-
addELContextListener
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
-
createELContext
-
fireListeners
-
addELResolver
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:
IllegalStateException
- if called after the application'sServletContextListeners
have been initialized.
-
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
-