Java 类javax.el.StaticFieldELResolver 实例源码

项目: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;
}
项目: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;
}
项目: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;
}