Search in sources :

Example 1 with ReadOnlyMapELResolver

use of org.camunda.bpm.engine.impl.el.ReadOnlyMapELResolver in project camunda-bpm-platform by camunda.

the class SpringExpressionManager method createElResolver.

@Override
protected ELResolver createElResolver() {
    CompositeELResolver compositeElResolver = new CompositeELResolver();
    compositeElResolver.add(new VariableScopeElResolver());
    compositeElResolver.add(new VariableContextElResolver());
    if (beans != null) {
        // Only expose limited set of beans in expressions
        compositeElResolver.add(new ReadOnlyMapELResolver(beans));
    } else {
        // Expose full application-context in expressions
        compositeElResolver.add(new ApplicationContextElResolver(applicationContext));
    }
    compositeElResolver.add(new ArrayELResolver());
    compositeElResolver.add(new ListELResolver());
    compositeElResolver.add(new MapELResolver());
    compositeElResolver.add(new BeanELResolver());
    return compositeElResolver;
}
Also used : ReadOnlyMapELResolver(org.camunda.bpm.engine.impl.el.ReadOnlyMapELResolver) CompositeELResolver(org.camunda.bpm.engine.impl.javax.el.CompositeELResolver) VariableContextElResolver(org.camunda.bpm.engine.impl.el.VariableContextElResolver) ListELResolver(org.camunda.bpm.engine.impl.javax.el.ListELResolver) ReadOnlyMapELResolver(org.camunda.bpm.engine.impl.el.ReadOnlyMapELResolver) MapELResolver(org.camunda.bpm.engine.impl.javax.el.MapELResolver) VariableScopeElResolver(org.camunda.bpm.engine.impl.el.VariableScopeElResolver) ArrayELResolver(org.camunda.bpm.engine.impl.javax.el.ArrayELResolver) BeanELResolver(org.camunda.bpm.engine.impl.javax.el.BeanELResolver)

Aggregations

ReadOnlyMapELResolver (org.camunda.bpm.engine.impl.el.ReadOnlyMapELResolver)1 VariableContextElResolver (org.camunda.bpm.engine.impl.el.VariableContextElResolver)1 VariableScopeElResolver (org.camunda.bpm.engine.impl.el.VariableScopeElResolver)1 ArrayELResolver (org.camunda.bpm.engine.impl.javax.el.ArrayELResolver)1 BeanELResolver (org.camunda.bpm.engine.impl.javax.el.BeanELResolver)1 CompositeELResolver (org.camunda.bpm.engine.impl.javax.el.CompositeELResolver)1 ListELResolver (org.camunda.bpm.engine.impl.javax.el.ListELResolver)1 MapELResolver (org.camunda.bpm.engine.impl.javax.el.MapELResolver)1