Class JspApplicationContextImpl
java.lang.Object
org.apache.sling.scripting.jsp.jasper.runtime.JspApplicationContextImpl
- All Implemented Interfaces:
JspApplicationContext
Implementation of JspApplicationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddELContextListener(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.org.apache.sling.scripting.jsp.jasper.el.ELContextImplcreateELContext(JspContext context) Returns the JSP container'sExpressionFactoryimplementation for EL use.static JspApplicationContextImplgetInstance(ServletContext context)
-
Constructor Details
-
JspApplicationContextImpl
public JspApplicationContextImpl()
-
-
Method Details
-
addELContextListener
Description copied from interface:JspApplicationContextRegisters anELContextListenerthat will be notified whenever a newELContextis created.At the very least, any
ELContextinstantiated will have reference to theJspContextunderJspContext.class.- Specified by:
addELContextListenerin interfaceJspApplicationContext- Parameters:
listener- The listener to add
-
getInstance
-
createELContext
-
addELResolver
Description copied from interface: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:
ImplicitObjectELResolverELResolverinstances registered with this methodMapELResolverListELResolverArrayELResolverBeanELResolverScopedAttributeELResolver
- Specified by:
addELResolverin interfaceJspApplicationContext- Parameters:
resolver- an additional resolver- Throws:
IllegalStateException- if called after the application'sServletContextListenershave been initialized.
-
getExpressionFactory
Description copied from interface:JspApplicationContextReturns the JSP container's
ExpressionFactoryimplementation for EL use.- Specified by:
getExpressionFactoryin interfaceJspApplicationContext- Returns:
- an
ExpressionFactoryimplementation
-