Example usage for javax.el MapELResolver MapELResolver

List of usage examples for javax.el MapELResolver MapELResolver

Introduction

In this page you can find the example usage for javax.el MapELResolver MapELResolver.

Prototype

public MapELResolver(boolean readOnly) 

Source Link

Usage

From source file:org.apache.camel.language.juel.JuelExpression.java

/**
 * Factory method to create the EL context
 *//*from   ww  w.  j  av  a2s  . com*/
protected ELContext createContext() {
    ELResolver resolver = new CompositeELResolver() {
        {
            //add(methodResolver);
            add(new ArrayELResolver(false));
            add(new ListELResolver(false));
            add(new MapELResolver(false));
            add(new ResourceBundleELResolver());
            add(new BeanAndMethodELResolver());
        }
    };
    return new SimpleContext(resolver);
}