Search in sources :

Example 1 with MapELResolver

use of javax.el.MapELResolver 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 MapELResolver

use of javax.el.MapELResolver in project tomcat70 by apache.

the class ELContextImpl method getDefaultResolver.

public static ELResolver getDefaultResolver() {
    if (Constants.IS_SECURITY_ENABLED) {
        CompositeELResolver defaultResolver = new CompositeELResolver();
        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 : 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 MapELResolver

use of javax.el.MapELResolver in project camunda-engine-dmn by camunda.

the class JuelElProvider method createDefaultResolver.

protected static ELResolver createDefaultResolver() {
    CompositeELResolver resolver = new CompositeELResolver();
    resolver.add(new VariableContextElResolver());
    resolver.add(new ArrayELResolver(true));
    resolver.add(new ListELResolver(true));
    resolver.add(new MapELResolver(true));
    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 MapELResolver

use of javax.el.MapELResolver 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 5 with MapELResolver

use of javax.el.MapELResolver 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)11 ListELResolver (javax.el.ListELResolver)11 MapELResolver (javax.el.MapELResolver)11 BeanELResolver (javax.el.BeanELResolver)10 CompositeELResolver (javax.el.CompositeELResolver)10 ResourceBundleELResolver (javax.el.ResourceBundleELResolver)9 FacesContext (javax.faces.context.FacesContext)2 ItemInstance (org.activiti.engine.impl.bpmn.data.ItemInstance)2 SimpleContext (de.odysseus.el.util.SimpleContext)1 SimpleResolver (de.odysseus.el.util.SimpleResolver)1 Iterator (java.util.Iterator)1 ELResolver (javax.el.ELResolver)1 ImplicitObjectELResolver (javax.servlet.jsp.el.ImplicitObjectELResolver)1 ScopedAttributeELResolver (javax.servlet.jsp.el.ScopedAttributeELResolver)1 DynamicBeanPropertyELResolver (org.activiti.engine.impl.el.DynamicBeanPropertyELResolver)1 JsonNodeELResolver (org.activiti.engine.impl.el.JsonNodeELResolver)1 VariableScopeElResolver (org.activiti.engine.impl.el.VariableScopeElResolver)1