use of javax.servlet.jsp.el.ImplicitObjectELResolver in project tomcat by apache.
the class TestJasperELResolver method doTestConstructor.
private void doTestConstructor(int count) throws Exception {
List<ELResolver> list = new ArrayList<>();
for (int i = 0; i < count; i++) {
list.add(new ImplicitObjectELResolver());
}
JasperELResolver resolver = new JasperELResolver(list, new StreamELResolverImpl());
Assert.assertEquals(Integer.valueOf(count), getField("appResolversSize", resolver));
Assert.assertEquals(9 + count, ((ELResolver[]) getField("resolvers", resolver)).length);
Assert.assertEquals(Integer.valueOf(9 + count), getField("size", resolver));
}
use of javax.servlet.jsp.el.ImplicitObjectELResolver in project sling by apache.
the class JspApplicationContextImpl method createELResolver.
private 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;
}
Aggregations