org.apache.myfaces.el.unified
Class ResolverBuilderBase
java.lang.Object
org.apache.myfaces.el.unified.ResolverBuilderBase
- Direct Known Subclasses:
- ResolverBuilderForFaces, ResolverBuilderForJSP
public class ResolverBuilderBase
- extends Object
- Version:
- $Revision: 1296049 $ $Date: 2012-03-02 05:48:16 +0100 (Fri, 02 Mar 2012) $
- Author:
- Mathias Broekelmann (latest modification by $Author: lu4242 $)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EL_RESOLVER_COMPARATOR
@JSFWebConfigParam(since="1.2.10, 2.0.2",
group="EL",
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
EL_RESOLVER_PREDICATE
@JSFWebConfigParam(since="2.1.0",
group="EL",
desc="The Class of an org.apache.commons.collections.Predicate<ELResolver> implementation.If used and returns true for a ELResolver instance, such resolver will not be installed in ELResolvers chain. Use with caution - can break functionality defined in JSF specification \'ELResolver Instances Provided by Faces\'")
public static final String EL_RESOLVER_PREDICATE
- See Also:
- Constant Field Values
ResolverBuilderBase
public ResolverBuilderBase(RuntimeConfig config)
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,
FacesCompositeELResolver.Scope scope)
- Sort the ELResolvers with a custom Comparator provided by the user.
- Parameters:
resolvers
- scope
- scope of ELResolvers (Faces,JSP)- Since:
- 1.2.10, 2.0.2
filterELResolvers
protected Iterable<javax.el.ELResolver> filterELResolvers(List<javax.el.ELResolver> resolvers,
FacesCompositeELResolver.Scope scope)
- Filters the ELResolvers with a custom Predicate provided by the user.
- Parameters:
resolvers
- list of ELResolversscope
- scope of ELResolvers (Faces,JSP)
- Returns:
- Iterable instance of Iterable containing filtered ELResolvers
createELResolver
protected javax.el.ELResolver createELResolver(VariableResolver resolver)
createELResolver
protected javax.el.ELResolver createELResolver(PropertyResolver resolver)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.