Class JspApplicationContextImpl

    • Constructor Detail

      • JspApplicationContextImpl

        public JspApplicationContextImpl()
        Constructs a new JspApplicationContextImpl instance.
    • Method Detail

      • getInstance

        public static JspApplicationContextImpl getInstance​(ServletContext context)
        Returns the JspApplicationContextImpl singleton for the given ServletContext. Creates a new instance if one does not yet exist.
        Parameters:
        context - The ServletContext
        Returns:
        The JspApplicationContextImpl instance
      • createELContext

        public ELContextImpl createELContext​(JspContext context)
        Creates an ELContext for the given JspContext.
        Parameters:
        context - The JspContext
        Returns:
        The created ELContextImpl
      • fireListeners

        protected void fireListeners​(ELContext elContext)
        Notifies all registered ELContextListeners that a new ELContext has been created.
        Parameters:
        elContext - The newly created 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 method
        • MapELResolver
        • ListELResolver
        • ArrayELResolver
        • BeanELResolver
        • ScopedAttributeELResolver
        Specified by:
        addELResolver in interface JspApplicationContext
        Parameters:
        resolver - an additional resolver
        Throws:
        java.lang.IllegalStateException - if called after the application's ServletContextListeners have been initialized.