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);
}
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;
}
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;
}
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);
}
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;
}
Aggregations