Class JspApplicationContextImpl
- java.lang.Object
-
- org.apache.sling.scripting.jsp.jasper.runtime.JspApplicationContextImpl
-
- All Implemented Interfaces:
JspApplicationContext
public class JspApplicationContextImpl extends java.lang.Object implements JspApplicationContext
Implementation of JspApplicationContext
-
-
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.org.apache.sling.scripting.jsp.jasper.el.ELContextImpl
createELContext(JspContext context)
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: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 org.apache.sling.scripting.jsp.jasper.el.ELContextImpl createELContext(JspContext context)
-
addELResolver
public void addELResolver(ELResolver resolver) throws java.lang.IllegalStateException
Description copied from interface: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:JspApplicationContext
Returns the JSP container's
ExpressionFactory
implementation for EL use.- Specified by:
getExpressionFactory
in interfaceJspApplicationContext
- Returns:
- an
ExpressionFactory
implementation
-
-