本文整理汇总了Java中javax.el.ELContextListener类的典型用法代码示例。如果您正苦于以下问题:Java ELContextListener类的具体用法?Java ELContextListener怎么用?Java ELContextListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ELContextListener类属于javax.el包,在下文中一共展示了ELContextListener类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
@Override
public void addELContextListener(ELContextListener listener) {
if (listener == null) {
throw new IllegalArgumentException("ELConextListener was null");
}
this.contextListeners.add(listener);
}
示例2: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
@Override
public void addELContextListener(ELContextListener listener) {
if (listener == null) {
throw new IllegalArgumentException("ELContextListener was null");
}
this.contextListeners.add(listener);
}
示例3: createELContext
import javax.el.ELContextListener; //导入依赖的package包/类
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;
}
示例4: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
public void addELContextListener(ELContextListener listener) {
if (listener == null) {
throw new IllegalArgumentException("ELConextListener was null");
}
this.contextListeners.add(listener);
}
示例5: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
public void addELContextListener(ELContextListener listener) {
listeners.add(listener);
}
示例6: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
/**
* 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);
示例7: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
/**
* 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);
示例8: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
/**
* 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);
示例9: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
/**
* 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);
示例10: addELContextListener
import javax.el.ELContextListener; //导入依赖的package包/类
/**
* <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);