Search in sources :

Example 6 with MapELResolver

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

the class ContextProducer method createELResolver.

private CompositeELResolver createELResolver(ConstantResolver constantResolver) {
    CompositeELResolver resolver = new CompositeELResolver();
    resolver.add(constantResolver);
    resolver.add(beanManager.getELResolver());
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if (facesContext != null) {
        resolver.add(facesContext.getELContext().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 : FacesContext(javax.faces.context.FacesContext) 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 7 with MapELResolver

use of javax.el.MapELResolver in project core by weld.

the class ELImpl method createELResolver.

private ELResolver createELResolver(BeanManagerImpl beanManagerImpl) {
    CompositeELResolver resolver = new CompositeELResolver();
    resolver.add(beanManagerImpl.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 8 with MapELResolver

use of javax.el.MapELResolver in project Activiti by Activiti.

the class ExpressionManager method addBaseResolvers.

private void addBaseResolvers(CompositeELResolver elResolver) {
    elResolver.add(new ArrayELResolver());
    elResolver.add(new ListELResolver());
    elResolver.add(new MapELResolver());
    elResolver.add(new JsonNodeELResolver());
    elResolver.add(new DynamicBeanPropertyELResolver(ItemInstance.class, "getFieldValue", // TODO: needs verification
    "setFieldValue"));
    elResolver.add(new BeanELResolver());
}
Also used : ListELResolver(javax.el.ListELResolver) MapELResolver(javax.el.MapELResolver) ArrayELResolver(javax.el.ArrayELResolver) ItemInstance(org.activiti.engine.impl.bpmn.data.ItemInstance) BeanELResolver(javax.el.BeanELResolver)

Example 9 with MapELResolver

use of javax.el.MapELResolver in project Activiti by Activiti.

the class MockExpressionManager method createElResolver.

@Override
protected ELResolver createElResolver(VariableScope variableScope) {
    CompositeELResolver compositeElResolver = new CompositeELResolver();
    compositeElResolver.add(new VariableScopeElResolver(variableScope));
    compositeElResolver.add(new MockElResolver());
    compositeElResolver.add(new ArrayELResolver());
    compositeElResolver.add(new ListELResolver());
    compositeElResolver.add(new MapELResolver());
    compositeElResolver.add(new BeanELResolver());
    return compositeElResolver;
}
Also used : CompositeELResolver(javax.el.CompositeELResolver) ListELResolver(javax.el.ListELResolver) MapELResolver(javax.el.MapELResolver) VariableScopeElResolver(org.activiti.engine.impl.el.VariableScopeElResolver) ArrayELResolver(javax.el.ArrayELResolver) BeanELResolver(javax.el.BeanELResolver)

Example 10 with MapELResolver

use of javax.el.MapELResolver in project Activiti by Activiti.

the class JuelScriptEngine method createElResolver.

private ELResolver createElResolver() {
    CompositeELResolver compositeResolver = new CompositeELResolver();
    compositeResolver.add(new ArrayELResolver());
    compositeResolver.add(new ListELResolver());
    compositeResolver.add(new MapELResolver());
    compositeResolver.add(new JsonNodeELResolver());
    compositeResolver.add(new ResourceBundleELResolver());
    compositeResolver.add(new DynamicBeanPropertyELResolver(ItemInstance.class, "getFieldValue", "setFieldValue"));
    compositeResolver.add(new BeanELResolver());
    return new SimpleResolver(compositeResolver);
}
Also used : CompositeELResolver(javax.el.CompositeELResolver) JsonNodeELResolver(org.activiti.engine.impl.el.JsonNodeELResolver) DynamicBeanPropertyELResolver(org.activiti.engine.impl.el.DynamicBeanPropertyELResolver) ListELResolver(javax.el.ListELResolver) ResourceBundleELResolver(javax.el.ResourceBundleELResolver) MapELResolver(javax.el.MapELResolver) SimpleResolver(de.odysseus.el.util.SimpleResolver) ArrayELResolver(javax.el.ArrayELResolver) ItemInstance(org.activiti.engine.impl.bpmn.data.ItemInstance) 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