Search in sources :

Example 1 with ELContextEvent

use of javax.el.ELContextEvent in project sling by apache.

the class JspApplicationContextImpl method createELContext.

public ELContextImpl createELContext(JspContext context) {
    if (context == null) {
        throw new IllegalArgumentException("JspContext was null");
    }
    // create ELContext for JspContext
    ELResolver r = this.createELResolver();
    ELContextImpl ctx = new ELContextImpl(r);
    ctx.putContext(JspContext.class, context);
    // alert all ELContextListeners
    ELContextEvent event = new ELContextEvent(ctx);
    for (int i = 0; i < this.contextListeners.size(); i++) {
        this.contextListeners.get(i).contextCreated(event);
    }
    return ctx;
}
Also used : ListELResolver(javax.el.ListELResolver) BeanELResolver(javax.el.BeanELResolver) ELResolver(javax.el.ELResolver) ImplicitObjectELResolver(javax.servlet.jsp.el.ImplicitObjectELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver) CompositeELResolver(javax.el.CompositeELResolver) ScopedAttributeELResolver(javax.servlet.jsp.el.ScopedAttributeELResolver) ELContextImpl(org.apache.sling.scripting.jsp.jasper.el.ELContextImpl) ELContextEvent(javax.el.ELContextEvent)

Aggregations

ArrayELResolver (javax.el.ArrayELResolver)1 BeanELResolver (javax.el.BeanELResolver)1 CompositeELResolver (javax.el.CompositeELResolver)1 ELContextEvent (javax.el.ELContextEvent)1 ELResolver (javax.el.ELResolver)1 ListELResolver (javax.el.ListELResolver)1 MapELResolver (javax.el.MapELResolver)1 ResourceBundleELResolver (javax.el.ResourceBundleELResolver)1 ImplicitObjectELResolver (javax.servlet.jsp.el.ImplicitObjectELResolver)1 ScopedAttributeELResolver (javax.servlet.jsp.el.ScopedAttributeELResolver)1 ELContextImpl (org.apache.sling.scripting.jsp.jasper.el.ELContextImpl)1