javax.el.ResourceBundleELResolver Java Examples

The following examples show how to use javax.el.ResourceBundleELResolver. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JasperELResolver.java    From Tomcat8-Source-Read with MIT License 6 votes vote down vote up
public JasperELResolver(List<ELResolver> appResolvers,
        ELResolver streamResolver) {
    appResolversSize = appResolvers.size();
    resolvers = new ELResolver[appResolversSize + STANDARD_RESOLVERS_COUNT];

    add(new ImplicitObjectELResolver());
    for (ELResolver appResolver : appResolvers) {
        add(appResolver);
    }
    add(streamResolver);
    add(new StaticFieldELResolver());
    add(new MapELResolver());
    add(new ResourceBundleELResolver());
    add(new ListELResolver());
    add(new ArrayELResolver());
    add(new BeanELResolver());
    add(new ScopedAttributeELResolver());
}
 
Example #2
Source File: JasperELResolver.java    From Tomcat7.0.67 with Apache License 2.0 6 votes vote down vote up
public JasperELResolver(List<ELResolver> appResolvers) {
    appResolversSize = appResolvers.size();
    resolvers = new ELResolver[appResolversSize + 7];
    size = 0;

    add(new ImplicitObjectELResolver());
    for (ELResolver appResolver : appResolvers) {
        add(appResolver);
    }
    add(new MapELResolver());
    add(new ResourceBundleELResolver());
    add(new ListELResolver());
    add(new ArrayELResolver());
    add(new BeanELResolver());
    add(new ScopedAttributeELResolver());
}
 
Example #3
Source File: JasperELResolver.java    From tomcatsrc with Apache License 2.0 6 votes vote down vote up
public JasperELResolver(List<ELResolver> appResolvers) {
    appResolversSize = appResolvers.size();
    resolvers = new ELResolver[appResolversSize + 7];
    size = 0;

    add(new ImplicitObjectELResolver());
    for (ELResolver appResolver : appResolvers) {
        add(appResolver);
    }
    add(new MapELResolver());
    add(new ResourceBundleELResolver());
    add(new ListELResolver());
    add(new ArrayELResolver());
    add(new BeanELResolver());
    add(new ScopedAttributeELResolver());
}
 
Example #4
Source File: ELContextImpl.java    From Tomcat8-Source-Read with MIT License 5 votes vote down vote up
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;
    }
}
 
Example #5
Source File: TilesConfigurer.java    From spring-analysis-note with MIT License 5 votes vote down vote up
public CompositeELResolverImpl() {
	add(new ScopeELResolver());
	add(new TilesContextELResolver(new TilesContextBeanELResolver()));
	add(new TilesContextBeanELResolver());
	add(new ArrayELResolver(false));
	add(new ListELResolver(false));
	add(new MapELResolver(false));
	add(new ResourceBundleELResolver());
	add(new BeanELResolver(false));
}
 
Example #6
Source File: TilesConfigurer.java    From java-technology-stack with MIT License 5 votes vote down vote up
public CompositeELResolverImpl() {
	add(new ScopeELResolver());
	add(new TilesContextELResolver(new TilesContextBeanELResolver()));
	add(new TilesContextBeanELResolver());
	add(new ArrayELResolver(false));
	add(new ListELResolver(false));
	add(new MapELResolver(false));
	add(new ResourceBundleELResolver());
	add(new BeanELResolver(false));
}
 
Example #7
Source File: JuelScriptEngine.java    From activiti6-boot2 with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example #8
Source File: ELContextImpl.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
public static ELResolver getDefaultResolver() {
    if (Constants.IS_SECURITY_ENABLED) {
        CompositeELResolver defaultResolver = new CompositeELResolver();
        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;
    }
}
 
Example #9
Source File: TilesConfigurer.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public CompositeELResolverImpl() {
	add(new ScopeELResolver());
	add(new TilesContextELResolver(new TilesContextBeanELResolver()));
	add(new TilesContextBeanELResolver());
	add(new ArrayELResolver(false));
	add(new ListELResolver(false));
	add(new MapELResolver(false));
	add(new ResourceBundleELResolver());
	add(new BeanELResolver(false));
}
 
Example #10
Source File: TilesConfigurer.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
public CompositeELResolverImpl() {
	add(new ScopeELResolver());
	add(new TilesContextELResolver(new TilesContextBeanELResolver()));
	add(new TilesContextBeanELResolver());
	add(new ArrayELResolver(false));
	add(new ListELResolver(false));
	add(new MapELResolver(false));
	add(new ResourceBundleELResolver());
	add(new BeanELResolver(false));
}
 
Example #11
Source File: ELContextImpl.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
public static ELResolver getDefaultResolver() {
    if (Constants.IS_SECURITY_ENABLED) {
        CompositeELResolver defaultResolver = new CompositeELResolver();
        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;
    }
}
 
Example #12
Source File: PageContextImpl.java    From packagedrone with Eclipse Public License 1.0 5 votes vote down vote up
private ELResolver getELResolver() {
                                                                            
    if (elResolver == null) {
        // Create a CompositeELResolver
        CompositeELResolver celResolver = new CompositeELResolver();
                                                                            
        celResolver.add(new ImplicitObjectELResolver());
        // Add ELResolvers registered in JspApplicationContext
        JspApplicationContextImpl jaContext = getJspApplicationContext();
        Iterator<ELResolver> it = jaContext.getELResolvers();
        while (it.hasNext()) {
            celResolver.add(it.next());
        }
        ELResolver streamELResolver =
            getExpressionFactory(this).getStreamELResolver();
        if (streamELResolver != null) {
            celResolver.add(streamELResolver);
        }
        celResolver.add(new StaticFieldELResolver());
        celResolver.add(new MapELResolver());
        celResolver.add(new ResourceBundleELResolver());
        celResolver.add(new ListELResolver());
        celResolver.add(new ArrayELResolver());
        celResolver.add(new BeanELResolver());
        celResolver.add(new ScopedAttributeELResolver());
        elResolver = celResolver;
    }
    return elResolver;
}
 
Example #13
Source File: JuelElProvider.java    From camunda-engine-dmn with Apache License 2.0 5 votes vote down vote up
protected static ELResolver createDefaultResolver() {
  CompositeELResolver resolver = new CompositeELResolver();
  resolver.add(new VariableContextElResolver());
  resolver.add(new ArrayELResolver(true));
  resolver.add(new ListELResolver(true));
  resolver.add(new MapELResolver(true));
  resolver.add(new ResourceBundleELResolver());
  resolver.add(new BeanELResolver());
  return resolver;
}
 
Example #14
Source File: ElMetricName.java    From metrics-cdi with Apache License 2.0 5 votes vote down vote up
ElMetricName(ELResolver resolver, ExpressionFactory expressionFactory, MetricsExtension extension) {
    super(extension);
    CompositeELResolver composite = new CompositeELResolver();
    composite.add(resolver);
    composite.add(new MapELResolver());
    composite.add(new ListELResolver());
    composite.add(new ArrayELResolver());
    composite.add(new ResourceBundleELResolver());
    composite.add(new BeanELResolver(true));
    this.elResolver = composite;
    this.expressionFactory = expressionFactory;
}
 
Example #15
Source File: JuelElProvider.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
protected static ELResolver createDefaultResolver() {
  CompositeELResolver resolver = new CompositeELResolver();
  resolver.add(new VariableContextElResolver());
  resolver.add(new ArrayELResolver(true));
  resolver.add(new ListELResolver(true));
  resolver.add(new MapELResolver(true));
  resolver.add(new ResourceBundleELResolver());
  resolver.add(new BeanELResolver());
  return resolver;
}