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 java.lang.Object
- Version:
- $Revision: 1100307 $ $Date: 2011-05-06 13:08:06 -0500 (Fri, 06 May 2011) $
- Author:
- Mathias Broekelmann (latest modification by $Author: martinkoci $)
Method Summary |
protected void |
addFromRuntimeConfig(java.util.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(javax.faces.el.PropertyResolver resolver)
|
protected javax.el.ELResolver |
createELResolver(javax.faces.el.VariableResolver resolver)
|
protected java.lang.Iterable<javax.el.ELResolver> |
filterELResolvers(java.util.List<javax.el.ELResolver> resolvers,
FacesCompositeELResolver.Scope scope)
Filters the ELResolvers with a custom Predicate provided by the user. |
protected java.lang.Object |
getAplicationScopedObject(javax.faces.context.FacesContext facesContext,
java.lang.String initParameterName)
|
protected void |
sortELResolvers(java.util.List<javax.el.ELResolver> resolvers,
FacesCompositeELResolver.Scope scope)
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 |
EL_RESOLVER_COMPARATOR
@JSFWebConfigParam(since="1.2.10, 2.0.2",
desc="The Class of an Comparator implementation.")
public static final java.lang.String EL_RESOLVER_COMPARATOR
- See Also:
- Constant Field Values
EL_RESOLVER_PREDICATE
@JSFWebConfigParam(since="2.1.0",
desc="The Class of an org.apache.commons.collections.Predicate 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 java.lang.String EL_RESOLVER_PREDICATE
- See Also:
- Constant Field Values
ResolverBuilderBase
public ResolverBuilderBase(RuntimeConfig config)
addFromRuntimeConfig
protected void addFromRuntimeConfig(java.util.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(java.util.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 java.lang.Iterable<javax.el.ELResolver> filterELResolvers(java.util.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
getAplicationScopedObject
protected java.lang.Object getAplicationScopedObject(javax.faces.context.FacesContext facesContext,
java.lang.String initParameterName)
createELResolver
protected javax.el.ELResolver createELResolver(javax.faces.el.VariableResolver resolver)
createELResolver
protected javax.el.ELResolver createELResolver(javax.faces.el.PropertyResolver resolver)
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.