Java 类javax.el.ELContextEvent 实例源码

项目:packagedrone    文件:JspApplicationContextImpl.java   
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;
    }
项目:class-guard    文件:JspApplicationContextImpl.java   
public ELContextImpl createELContext(JspContext context) {
    if (context == null) {
        throw new IllegalArgumentException("JspContext was null");
    }

    // create ELContext for JspContext
    final ELResolver r = this.createELResolver();
    ELContextImpl ctx;
    if (Constants.IS_SECURITY_ENABLED) {
        ctx = AccessController.doPrivileged(
                new PrivilegedAction<ELContextImpl>() {
                    @Override
                    public ELContextImpl run() {
                        return new ELContextImpl(r);
                    }
                });
    } else {
        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;
}
项目:package-drone    文件:JspApplicationContextImpl.java   
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;
    }
项目:apache-tomcat-7.0.57    文件:JspApplicationContextImpl.java   
public ELContextImpl createELContext(JspContext context) {
    if (context == null) {
        throw new IllegalArgumentException("JspContext was null");
    }

    // create ELContext for JspContext
    final ELResolver r = this.createELResolver();
    ELContextImpl ctx;
    if (Constants.IS_SECURITY_ENABLED) {
        ctx = AccessController.doPrivileged(
                new PrivilegedAction<ELContextImpl>() {
                    @Override
                    public ELContextImpl run() {
                        return new ELContextImpl(r);
                    }
                });
    } else {
        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;
}
项目:apache-tomcat-7.0.57    文件:JspApplicationContextImpl.java   
public ELContextImpl createELContext(JspContext context) {
    if (context == null) {
        throw new IllegalArgumentException("JspContext was null");
    }

    // create ELContext for JspContext
    final ELResolver r = this.createELResolver();
    ELContextImpl ctx;
    if (Constants.IS_SECURITY_ENABLED) {
        ctx = AccessController.doPrivileged(
                new PrivilegedAction<ELContextImpl>() {
                    @Override
                    public ELContextImpl run() {
                        return new ELContextImpl(r);
                    }
                });
    } else {
        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;
}
项目:WBSAirback    文件:JspApplicationContextImpl.java   
public ELContextImpl createELContext(JspContext context) {
    if (context == null) {
        throw new IllegalArgumentException("JspContext was null");
    }

    // create ELContext for JspContext
    final ELResolver r = this.createELResolver();
    ELContextImpl ctx;
    if (Constants.IS_SECURITY_ENABLED) {
        ctx = AccessController.doPrivileged(
                new PrivilegedAction<ELContextImpl>() {
                    @Override
                    public ELContextImpl run() {
                        return new ELContextImpl(r);
                    }
                });
    } else {
        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;
}