Search in sources :

Example 1 with ArrayELResolver

use of javax.el.ArrayELResolver in project camel by apache.

the class JuelExpression method createContext.

/**
     * Factory method to create the EL context
     */
protected ELContext createContext() {
    ELResolver resolver = new CompositeELResolver() {

        {
            add(new ArrayELResolver(false));
            add(new ListELResolver(false));
            add(new MapELResolver(false));
            add(new ResourceBundleELResolver());
            add(new BeanAndMethodELResolver());
        }
    };
    return new SimpleContext(resolver);
}
Also used : ListELResolver(javax.el.ListELResolver) ELResolver(javax.el.ELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver) CompositeELResolver(javax.el.CompositeELResolver) CompositeELResolver(javax.el.CompositeELResolver) SimpleContext(de.odysseus.el.util.SimpleContext) ListELResolver(javax.el.ListELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver)

Example 2 with ArrayELResolver

use of javax.el.ArrayELResolver 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(javax.el.StaticFieldELResolver) CompositeELResolver(javax.el.CompositeELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) ListELResolver(javax.el.ListELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver) BeanELResolver(javax.el.BeanELResolver)

Example 3 with ArrayELResolver

use of javax.el.ArrayELResolver in project oxCore by GluuFederation.

the class ContextProducer method createELResolver.

private CompositeELResolver createELResolver(BeanManager beanManager) {
    CompositeELResolver resolver = new CompositeELResolver();
    resolver.add(beanManager.getELResolver());
    resolver.add(new MapELResolver());
    resolver.add(new ListELResolver());
    resolver.add(new ArrayELResolver());
    resolver.add(new ResourceBundleELResolver());
    resolver.add(new BeanELResolver());
    return resolver;
}
Also used : CompositeELResolver(javax.el.CompositeELResolver) ListELResolver(javax.el.ListELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver) BeanELResolver(javax.el.BeanELResolver)

Example 4 with ArrayELResolver

use of javax.el.ArrayELResolver 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;
}
Also used : CompositeELResolver(javax.el.CompositeELResolver) ImplicitObjectELResolver(javax.servlet.jsp.el.ImplicitObjectELResolver) Iterator(java.util.Iterator) ScopedAttributeELResolver(javax.servlet.jsp.el.ScopedAttributeELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) ListELResolver(javax.el.ListELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver) BeanELResolver(javax.el.BeanELResolver)

Aggregations

ArrayELResolver (javax.el.ArrayELResolver)4 CompositeELResolver (javax.el.CompositeELResolver)4 ListELResolver (javax.el.ListELResolver)4 MapELResolver (javax.el.MapELResolver)4 ResourceBundleELResolver (javax.el.ResourceBundleELResolver)4 BeanELResolver (javax.el.BeanELResolver)3 SimpleContext (de.odysseus.el.util.SimpleContext)1 Iterator (java.util.Iterator)1 ELResolver (javax.el.ELResolver)1 StaticFieldELResolver (javax.el.StaticFieldELResolver)1 ImplicitObjectELResolver (javax.servlet.jsp.el.ImplicitObjectELResolver)1 ScopedAttributeELResolver (javax.servlet.jsp.el.ScopedAttributeELResolver)1