Methods Summary |
---|
public void | addELContextListener(javax.el.ELContextListener listener)
if (listener == null) {
throw new IllegalArgumentException("ELConextListener was null");
}
this.contextListeners.add(listener);
|
public void | addELResolver(javax.el.ELResolver resolver)
if (resolver == null) {
throw new IllegalArgumentException("ELResolver was null");
}
if (this.instantiated) {
throw new IllegalStateException(
"cannot call addELResolver after the first request has been made");
}
this.resolvers.add(resolver);
|
public org.apache.jasper.el.ELContextImpl | createELContext(javax.servlet.jsp.JspContext context)
if (context == null) {
throw new IllegalArgumentException("JspContext was null");
}
// create ELContext for JspContext
ELResolver r = this.createELResolver();
ELContextImpl 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;
|
private javax.el.ELResolver | createELResolver()
this.instantiated = true;
if (this.resolver == null) {
CompositeELResolver r = new CompositeELResolver();
r.add(new ImplicitObjectELResolver());
for (Iterator itr = this.resolvers.iterator(); itr.hasNext();) {
r.add((ELResolver) itr.next());
}
r.add(new MapELResolver());
r.add(new ResourceBundleELResolver());
r.add(new ListELResolver());
r.add(new ArrayELResolver());
r.add(new BeanELResolver());
r.add(new ScopedAttributeELResolver());
this.resolver = r;
}
return this.resolver;
|
public javax.el.ExpressionFactory | getExpressionFactory()
return expressionFactory;
|
public static org.apache.jasper.runtime.JspApplicationContextImpl | getInstance(javax.servlet.ServletContext context)
if (context == null) {
throw new IllegalArgumentException("ServletContext was null");
}
JspApplicationContextImpl impl = (JspApplicationContextImpl) context
.getAttribute(KEY);
if (impl == null) {
impl = new JspApplicationContextImpl();
context.setAttribute(KEY, impl);
}
return impl;
|