use of javax.el.BeanELResolver in project tomcat by apache.
the class ELContextImpl method getDefaultResolver.
public static ELResolver getDefaultResolver(ExpressionFactory factory) {
if (Constants.IS_SECURITY_ENABLED) {
CompositeELResolver defaultResolver = new CompositeELResolver();
defaultResolver.add(factory.getStreamELResolver());
defaultResolver.add(new StaticFieldELResolver());
defaultResolver.add(new MapELResolver());
defaultResolver.add(new ResourceBundleELResolver());
defaultResolver.add(new ListELResolver());
defaultResolver.add(new ArrayELResolver());
defaultResolver.add(new BeanELResolver());
return defaultResolver;
} else {
return DefaultResolver;
}
}
use of javax.el.BeanELResolver in project tomee by apache.
the class StatefulConversationScopedTOMEE1138Test method el.
@Test
public void el() {
final BeanELResolver elResolver = new BeanELResolver();
assertEquals("John", elResolver.getValue(new ELContext() {
@Override
public ELResolver getELResolver() {
return elResolver;
}
@Override
public FunctionMapper getFunctionMapper() {
return new FunctionMapper() {
@Override
public Method resolveFunction(final String prefix, final String localName) {
return null;
}
};
}
@Override
public VariableMapper getVariableMapper() {
return new VariableMapper() {
@Override
public ValueExpression resolveVariable(final String variable) {
return null;
}
@Override
public ValueExpression setVariable(final String variable, final ValueExpression expression) {
return null;
}
};
}
}, conversationByName, "name"));
}
use of javax.el.BeanELResolver in project jersey by jersey.
the class LinkELContext method getELResolver.
@Override
public ELResolver getELResolver() {
CompositeELResolver resolver = new CompositeELResolver();
resolver.add(new ResponseContextResolver(entity, resource, instance));
resolver.add(new BeanELResolver(true));
return resolver;
}
use of javax.el.BeanELResolver in project oxCore by GluuFederation.
the class ContextProducer method createELResolver.
private CompositeELResolver createELResolver(BeanManager beanManager) {
CompositeELResolver resolver = new CompositeELResolver();
resolver.add(beanManager.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.BeanELResolver 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;
}
Aggregations