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; }
@Override public ELContext getELContext() { if (elContext == null) { elContext = new ELContextWrapper(rootJspCtxt.getELContext(), jspTag, this); JspFactory factory = JspFactory.getDefaultFactory(); JspApplicationContext jspAppCtxt = factory.getJspApplicationContext(servletContext); if (jspAppCtxt instanceof JspApplicationContextImpl) { ((JspApplicationContextImpl) jspAppCtxt).fireListeners(elContext); } } return elContext; }
@Override public ELContext getELContext() { if (elContext == null) { elContext = new ELContextWrapper(rootJspCtxt.getELContext(), jspTag, this); JspFactory factory = JspFactory.getDefaultFactory(); JspApplicationContext jspAppCtxt = factory.getJspApplicationContext(servletContext); if (jspAppCtxt instanceof JspApplicationContextImpl) { ((JspApplicationContextImpl) jspAppCtxt).fireListeners(elContext); } } return elContext; }
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; }