Java 类javax.el.ResourceBundleELResolver 实例源码

项目:tomcat7    文件:JasperELResolver.java   
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());
}
项目:lams    文件:JspApplicationContextImpl.java   
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;
}
项目:apache-tomcat-7.0.73-with-comment    文件:JasperELResolver.java   
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());
}
项目:lazycat    文件:JasperELResolver.java   
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());
}
项目:class-guard    文件:JasperELResolver.java   
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());
}
项目:package-drone    文件:PageContextImpl.java   
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;
}
项目:apache-tomcat-7.0.57    文件:JasperELResolver.java   
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());
}
项目:apache-tomcat-7.0.57    文件:ELContextImpl.java   
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;
    }
}
项目:apache-tomcat-7.0.57    文件:JasperELResolver.java   
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());
}
项目:protobuf-el    文件:ELContextEx.java   
@Override
public ELResolver getELResolver() {
  if (elResolver == null) {
    final CompositeELResolver resolver = new CompositeELResolver();
    customResolver = new CompositeELResolver();
    resolver.add(customResolver);
    resolver.add(factory.getStreamELResolver());
    resolver.add(new StaticFieldELResolver());
    resolver.add(new MapELResolver());
    resolver.add(new ResourceBundleELResolver());
    resolver.add(new ListELResolver());
    resolver.add(new ArrayELResolver());
    resolver.add(new BeanELResolverEx());
    elResolver = resolver;
  }

  return elResolver;
}
项目:oxCore    文件:ContextProducer.java   
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;
}
项目:WBSAirback    文件:JspApplicationContextImpl.java   
private ELResolver createELResolver() {
    this.instantiated = true;
    if (this.resolver == null) {
        CompositeELResolver r = new CompositeELResolver();
        r.add(new ImplicitObjectELResolver());
        for (Iterator<ELResolver> itr = this.resolvers.iterator();
                itr.hasNext();) {
            r.add(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;
}
项目:tomcat7    文件:ELContextImpl.java   
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;
    }
}
项目:lams    文件:ELResolverImpl.java   
public static ELResolver getDefaultResolver() {
    if (Globals.IS_SECURITY_ENABLED) {
        ELResolver defaultResolver = new CompositeELResolver();
        ((CompositeELResolver) defaultResolver).add(new MapELResolver());
        ((CompositeELResolver) defaultResolver).add(new ResourceBundleELResolver());
        ((CompositeELResolver) defaultResolver).add(new ListELResolver());
        ((CompositeELResolver) defaultResolver).add(new ArrayELResolver());
        ((CompositeELResolver) defaultResolver).add(new BeanELResolver());
        return defaultResolver;
    } else {
        return DefaultResolver;
    }
}
项目:apache-tomcat-7.0.73-with-comment    文件:ELContextImpl.java   
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;
    }
}
项目:lazycat    文件:ELContextImpl.java   
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;
    }
}
项目:spring4-understanding    文件:TilesConfigurer.java   
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));
}
项目:Camel    文件:JuelExpression.java   
/**
 * Factory method to create the EL context
 */
protected ELContext createContext() {
    ELResolver resolver = new CompositeELResolver() {
        {
            add(new ArrayELResolver(false));
            add(new ListELResolver(false));
            add(new MapELResolver(false));
            add(new ResourceBundleELResolver());
            add(new BeanAndMethodELResolver());
        }
    };
    return new SimpleContext(resolver);
}
项目:bridje-framework    文件:IocElContext.java   
@Override
public ELResolver getELResolver()
{
    if (resolver == null)
    {
        CompositeELResolver cr = new CompositeELResolver();
        cr.add(new CompositeELResolver());
        cr.add(new ResourceBundleELResolver());
        cr.add(new MapELResolver(false));
        cr.add(new SimpleResolver());
        resolver = cr;
    }
    return resolver;
}
项目:packagedrone    文件:PageContextImpl.java   
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;
}
项目:camunda-engine-dmn    文件:JuelElProvider.java   
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;
}
项目:class-guard    文件:TilesConfigurer.java   
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));
}
项目:class-guard    文件:ELContextImpl.java   
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;
    }
}
项目:TechnologyReadinessTool    文件:ELAwareResourceBundle.java   
@Override
protected Object handleGetObject(String key) {
    String expression = wrapped.getString(key);
    SimpleContext context = new SimpleContext();
    CompositeELResolver resolver = new CompositeELResolver();
    resolver.add(new IndirectResourceBundleELResolver(wrapped));
    resolver.add(new ResourceBundleELResolver());
    context.setELResolver(resolver);

    ValueExpression ve = factory.createValueExpression(context, expression, String.class);
    String value = (String) ve.getValue(context);
    return value;
}
项目:apache-tomcat-7.0.57    文件:ELContextImpl.java   
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;
    }
}
项目:metrics-cdi    文件:ElMetricName.java   
ElMetricName(ELResolver resolver, ExpressionFactory expressionFactory, Set<MetricsParameter> parameters) {
    super(parameters);
    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;
}
项目:WBSAirback    文件:ELResolverImpl.java   
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;
    }
}