Search in sources :

Example 1 with CompositeELResolver

use of jakarta.el.CompositeELResolver in project tomcat by apache.

the class ELContextImpl method getDefaultResolver.

public static ELResolver getDefaultResolver(ExpressionFactory factory) {
    if (Constants.IS_SECURITY_ENABLED) {
        CompositeELResolver defaultResolver = new CompositeELResolver();
        defaultResolver.add(factory.getStreamELResolver());
        defaultResolver.add(new StaticFieldELResolver());
        defaultResolver.add(new MapELResolver());
        defaultResolver.add(new ResourceBundleELResolver());
        defaultResolver.add(new ListELResolver());
        defaultResolver.add(new ArrayELResolver());
        defaultResolver.add(new BeanELResolver());
        return defaultResolver;
    } else {
        return DefaultResolver;
    }
}
Also used : StaticFieldELResolver(jakarta.el.StaticFieldELResolver) CompositeELResolver(jakarta.el.CompositeELResolver) ResourceBundleELResolver(jakarta.el.ResourceBundleELResolver) ListELResolver(jakarta.el.ListELResolver) MapELResolver(jakarta.el.MapELResolver) ArrayELResolver(jakarta.el.ArrayELResolver) BeanELResolver(jakarta.el.BeanELResolver)

Example 2 with CompositeELResolver

use of jakarta.el.CompositeELResolver in project tomcat by apache.

the class JspApplicationContextImpl method createELResolver.

private ELResolver createELResolver() {
    this.instantiated = true;
    if (this.resolver == null) {
        CompositeELResolver r = new JasperELResolver(this.resolvers, expressionFactory.getStreamELResolver());
        this.resolver = r;
    }
    return this.resolver;
}
Also used : JasperELResolver(org.apache.jasper.el.JasperELResolver) CompositeELResolver(jakarta.el.CompositeELResolver)

Aggregations

CompositeELResolver (jakarta.el.CompositeELResolver)2 ArrayELResolver (jakarta.el.ArrayELResolver)1 BeanELResolver (jakarta.el.BeanELResolver)1 ListELResolver (jakarta.el.ListELResolver)1 MapELResolver (jakarta.el.MapELResolver)1 ResourceBundleELResolver (jakarta.el.ResourceBundleELResolver)1 StaticFieldELResolver (jakarta.el.StaticFieldELResolver)1 JasperELResolver (org.apache.jasper.el.JasperELResolver)1