Search in sources :

Example 6 with CompositeELResolver

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

the class ContextProducer method createELContext.

@Produces
@RequestScoped
public ELContext createELContext(BeanManager beanManager) {
    // Create default resovler
    CompositeELResolver resolver = createELResolver(beanManager);
    // Add constant resolver
    ConstantResolver constantResolver = new ConstantResolver();
    resolver.add(constantResolver);
    return createELContext(resolver, new FunctionMapperImpl(), new VariableMapperImpl(), constantResolver);
}
Also used : FunctionMapperImpl(com.sun.el.lang.FunctionMapperImpl) CompositeELResolver(javax.el.CompositeELResolver) VariableMapperImpl(com.sun.el.lang.VariableMapperImpl) Produces(javax.enterprise.inject.Produces) RequestScoped(javax.enterprise.context.RequestScoped)

Example 7 with CompositeELResolver

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

Example 8 with CompositeELResolver

use of javax.el.CompositeELResolver 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 9 with CompositeELResolver

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

the class ContextProducer method createELContext.

@Produces
@RequestScoped
public ExtendedELContext createELContext() {
    ConstantResolver constantResolver = new ConstantResolver();
    CompositeELResolver resolver = createELResolver(constantResolver);
    return createELContext(resolver, new FunctionMapperImpl(), new VariableMapperImpl(), constantResolver);
}
Also used : FunctionMapperImpl(com.sun.el.lang.FunctionMapperImpl) CompositeELResolver(javax.el.CompositeELResolver) VariableMapperImpl(com.sun.el.lang.VariableMapperImpl) Produces(javax.enterprise.inject.Produces) RequestScoped(javax.enterprise.context.RequestScoped)

Example 10 with CompositeELResolver

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

the class JspApplicationContextImpl method createELResolver.

private ELResolver createELResolver() {
    this.instantiated = true;
    if (this.resolver == null) {
        CompositeELResolver r = new JasperELResolver(this.resolvers);
        this.resolver = r;
    }
    return this.resolver;
}
Also used : JasperELResolver(org.apache.jasper.el.JasperELResolver) CompositeELResolver(javax.el.CompositeELResolver)

Aggregations

CompositeELResolver (javax.el.CompositeELResolver)11 ArrayELResolver (javax.el.ArrayELResolver)7 BeanELResolver (javax.el.BeanELResolver)7 ListELResolver (javax.el.ListELResolver)7 MapELResolver (javax.el.MapELResolver)7 ResourceBundleELResolver (javax.el.ResourceBundleELResolver)7 FunctionMapperImpl (com.sun.el.lang.FunctionMapperImpl)2 VariableMapperImpl (com.sun.el.lang.VariableMapperImpl)2 RequestScoped (javax.enterprise.context.RequestScoped)2 Produces (javax.enterprise.inject.Produces)2 SimpleContext (de.odysseus.el.util.SimpleContext)1 Iterator (java.util.Iterator)1 ELResolver (javax.el.ELResolver)1 FacesContext (javax.faces.context.FacesContext)1 ImplicitObjectELResolver (javax.servlet.jsp.el.ImplicitObjectELResolver)1 ScopedAttributeELResolver (javax.servlet.jsp.el.ScopedAttributeELResolver)1 JasperELResolver (org.apache.jasper.el.JasperELResolver)1