public ExpressionEvaluatorImpl(JspContext pageContext, ExpressionFactory factory) { this.factory = factory; this.ctx = new ELContextImpl(factory); ctx.putContext(JspContext.class, pageContext); }
@Override public Object evaluate(VariableResolver vResolver) throws ELException { ELContextImpl ctx = new ELContextImpl(context); ctx.putContext(JspContext.class, context.getContext(JspContext.class)); ctx.addELResolver(new ELResolverImpl(vResolver, context)); return ve.getValue(ctx); } }
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; }
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>() { 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; }
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; }
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 fireListeners(ctx); return ctx; }
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; }
public ELContextImpl createELContext(JspContext context) { if (context == null) { throw MESSAGES.nullJspContext(); } // create ELContext for JspContext final ELResolver r = this.createELResolver(); ELContextImpl ctx; if (Constants.IS_SECURITY_ENABLED) { ctx = AccessController.doPrivileged( new PrivilegedAction<ELContextImpl>() { 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; }
public ELContextImpl createELContext(JspContext context) { if (context == null) { throw MESSAGES.nullJspContext(); } // create ELContext for JspContext ELContextImpl ctx; if (Constants.IS_SECURITY_ENABLED) { ctx = AccessController.doPrivileged( new PrivilegedAction<ELContextImpl>() { @Override public ELContextImpl run() { return new ELContextImpl(expressionFactory); } }); } else { ctx = new ELContextImpl(expressionFactory); } ctx.addELResolver(resolvers); //register application resolvers ctx.putContext(JspContext.class, context); // alert all ELContextListeners fireListeners(ctx); this.instantiated = true; return ctx; }