org.apache.myfaces.el.unified
Class ResolverBuilderBase

java.lang.Object
  extended by org.apache.myfaces.el.unified.ResolverBuilderBase
Direct Known Subclasses:
ResolverBuilderForFaces, ResolverBuilderForJSP

public class ResolverBuilderBase
extends Object

Version:
$Revision: 1162644 $ $Date: 2011-08-28 23:30:48 -0500 (Sun, 28 Aug 2011) $
Author:
Mathias Broekelmann (latest modification by $Author: lu4242 $)

Field Summary
static String EL_RESOLVER_COMPARATOR
          Define a custom comparator class used to sort the ELResolvers.
 
Constructor Summary
ResolverBuilderBase(RuntimeConfig config)
           
 
Method Summary
protected  void addFromRuntimeConfig(List<javax.el.ELResolver> resolvers)
          add the el resolvers from the faces config, the el resolver wrapper for variable resolver, the el resolver wrapper for the property resolver and the el resolvers added by Application.addELResolver(ELResolver).
protected  javax.el.ELResolver createELResolver(PropertyResolver resolver)
           
protected  javax.el.ELResolver createELResolver(VariableResolver resolver)
           
protected  void sortELResolvers(List<javax.el.ELResolver> resolvers)
          Sort the ELResolvers with a custom Comparator provided by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EL_RESOLVER_COMPARATOR

@JSFWebConfigParam(since="1.2.10, 2.0.2",
                   desc="The Class of an Comparator<ELResolver> implementation.")
public static final String EL_RESOLVER_COMPARATOR
Define a custom comparator class used to sort the ELResolvers.

This is useful when it is necessary to put an ELResolver on top of other resolvers. Note set this param override the default ordering described by JSF spec section 5.

See Also:
Constant Field Values
Constructor Detail

ResolverBuilderBase

public ResolverBuilderBase(RuntimeConfig config)
Method Detail

addFromRuntimeConfig

protected void addFromRuntimeConfig(List<javax.el.ELResolver> resolvers)
add the el resolvers from the faces config, the el resolver wrapper for variable resolver, the el resolver wrapper for the property resolver and the el resolvers added by Application.addELResolver(ELResolver). The resolvers where only added if they are not null

Parameters:
resolvers -

sortELResolvers

protected void sortELResolvers(List<javax.el.ELResolver> resolvers)
Sort the ELResolvers with a custom Comparator provided by the user.

Parameters:
resolvers -
Since:
1.2.10, 2.0.2

createELResolver

protected javax.el.ELResolver createELResolver(VariableResolver resolver)

createELResolver

protected javax.el.ELResolver createELResolver(PropertyResolver resolver)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.