@Override public void addELContextListener(ELContextListener listener) { if (listener == null) { throw new IllegalArgumentException("ELConextListener was null"); } this.contextListeners.add(listener); }
@Override public void addELContextListener(ELContextListener listener) { if (listener == null) { throw new IllegalArgumentException("ELContextListener was null"); } this.contextListeners.add(listener); }
protected ELContext createELContext(ELResolver resolver) { ELContext elContext = new ELContextImpl(resolver); // Notify the listeners Iterator<ELContextListener> iter = listeners.iterator(); while (iter.hasNext()) { ELContextListener elcl = iter.next(); elcl.contextCreated(new ELContextEvent(elContext)); } return elContext; }
public void addELContextListener(ELContextListener listener) { if (listener == null) { throw new IllegalArgumentException("ELConextListener was null"); } this.contextListeners.add(listener); }
public void addELContextListener(ELContextListener listener) { listeners.add(listener); }
/** * Registers an <code>ELContextListener</code> that will be notified * whenever a new <code>ELContext</code> is created. * <p> * At the very least, any <code>ELContext</code> instantiated will have * reference to the <code>JspContext</code> under * <code>JspContext.class</code>. * * @param listener The listener to add */ public void addELContextListener(ELContextListener listener);
/** * Registers a <code>ELContextListener</code>s so that context objects * can be added whenever a new <code>ELContext</code> is created. * * <p>At a minimum, the <code>ELContext</code> objects created will * contain a reference to the <code>JspContext</code> for this request, * which is added by the JSP container. * This is sufficient for all the * default <code>ELResolver</code>s listed in {@link #addELResolver}. * Note that <code>JspContext.class</code> is used as the key to ELContext.putContext() * for the <code>JspContext</code> object reference.</p> * * <p>This method is generally used by frameworks and applications that * register their own <code>ELResolver</code> that needs context other * than <code>JspContext</code>. The listener will typically add the * necessary context to the <code>ELContext</code> provided in the * event object. Registering a listener that adds context allows the * <code>ELResolver</code>s in the stack to access the context they * need when they do a resolution.</p> * * @param listener The listener to be notified when a new * <code>ELContext</code> is created. */ public void addELContextListener(ELContextListener listener);
/** * Registers an <code>ELContextListener</code> that will be notified * whenever a new <code>ELContext</code> is created. * <p> * At the very least, any <code>ELContext</code> instantiated will have * reference to the <code>JspContext</code> under * <code>JspContext.class</code>. * * @param listener * The listener to add */ public void addELContextListener(ELContextListener listener);
/** * <p> * Registers an <code>ELContextListener</code> that will notified whenever a * new <code>ELContext</code> is created. * </p> * <p> * At the very least, any <code>ELContext</code> instantiated will have * reference to the <code>JspContext</code> under * <code>JspContext.class</code>. * </p> * * @param listener */ public void addELContextListener(ELContextListener listener);