public class ResolverBuilderBase extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EL_RESOLVER_COMPARATOR
Define a custom comparator class used to sort the ELResolvers.
|
static String |
EL_RESOLVER_PREDICATE |
Constructor and Description |
---|
ResolverBuilderBase(RuntimeConfig config) |
Modifier and Type | Method and Description |
---|---|
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 Iterable<javax.el.ELResolver> |
filterELResolvers(List<javax.el.ELResolver> resolvers,
FacesCompositeELResolver.Scope scope)
Filters the ELResolvers with a custom Predicate provided by the user.
|
protected RuntimeConfig |
getRuntimeConfig() |
protected void |
sortELResolvers(List<javax.el.ELResolver> resolvers,
FacesCompositeELResolver.Scope scope)
Sort the ELResolvers with a custom Comparator provided by the user.
|
@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
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.
@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
public ResolverBuilderBase(RuntimeConfig config)
protected void addFromRuntimeConfig(List<javax.el.ELResolver> resolvers)
Application.addELResolver(ELResolver)
.
The resolvers where only added if they are not nullresolvers
- protected void sortELResolvers(List<javax.el.ELResolver> resolvers, FacesCompositeELResolver.Scope scope)
resolvers
- scope
- scope of ELResolvers (Faces,JSP)protected Iterable<javax.el.ELResolver> filterELResolvers(List<javax.el.ELResolver> resolvers, FacesCompositeELResolver.Scope scope)
resolvers
- list of ELResolversscope
- scope of ELResolvers (Faces,JSP)protected javax.el.ELResolver createELResolver(VariableResolver resolver)
protected javax.el.ELResolver createELResolver(PropertyResolver resolver)
protected RuntimeConfig getRuntimeConfig()
Copyright © 2020 The Apache Software Foundation. All rights reserved.