|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.faces.el.ELUtils
public class ELUtils
Utility class for EL related methods.
Field Summary | |
---|---|
static javax.el.ArrayELResolver |
ARRAY_RESOLVER
|
static javax.el.BeanELResolver |
BEAN_RESOLVER
|
static javax.el.ResourceBundleELResolver |
BUNDLE_RESOLVER
|
static FacesResourceBundleELResolver |
FACES_BUNDLE_RESOLVER
|
static ImplicitObjectELResolverForJsp |
IMPLICIT_JSP_RESOLVER
|
static ImplicitObjectELResolver |
IMPLICIT_RESOLVER
|
static javax.el.ListELResolver |
LIST_RESOLVER
|
static ManagedBeanELResolver |
MANAGED_BEAN_RESOLVER
|
static javax.el.MapELResolver |
MAP_RESOLVER
|
static ScopedAttributeELResolver |
SCOPED_RESOLVER
|
Method Summary | |
---|---|
static void |
buildFacesResolver(javax.el.CompositeELResolver composite,
ApplicationAssociate associate)
Create the ELResolver chain for programmatic EL calls. |
static void |
buildJSPResolver(javax.el.CompositeELResolver composite,
ApplicationAssociate associate)
Create the ELResolver chain for JSP. |
static java.lang.Object |
evaluateValueExpression(javax.el.ValueExpression expression,
javax.el.ELContext elContext)
|
static javax.faces.el.PropertyResolver |
getDelegatePR(ApplicationAssociate associate,
boolean provideDefault)
|
static javax.faces.el.VariableResolver |
getDelegateVR(ApplicationAssociate associate,
boolean provideDefault)
|
static java.util.List |
getExpressionsFromString(java.lang.String expressionString)
|
static ManagedBeanFactory.Scope |
getScope(java.lang.String valueBinding,
java.lang.String[] outString)
This method is used by the ManagedBeanFactory to ensure that properties set by an expression point to an object with an accepted lifespan. |
static javax.el.ValueExpression |
getValueExpression(java.lang.String valueRef)
Create a ValueExpression with the expected type of
Object.class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.el.ArrayELResolver ARRAY_RESOLVER
public static final javax.el.BeanELResolver BEAN_RESOLVER
public static final FacesResourceBundleELResolver FACES_BUNDLE_RESOLVER
public static final ImplicitObjectELResolverForJsp IMPLICIT_JSP_RESOLVER
public static final ImplicitObjectELResolver IMPLICIT_RESOLVER
public static final javax.el.ListELResolver LIST_RESOLVER
public static final ManagedBeanELResolver MANAGED_BEAN_RESOLVER
public static final javax.el.MapELResolver MAP_RESOLVER
public static final javax.el.ResourceBundleELResolver BUNDLE_RESOLVER
public static final ScopedAttributeELResolver SCOPED_RESOLVER
Method Detail |
---|
public static void buildFacesResolver(javax.el.CompositeELResolver composite, ApplicationAssociate associate)
Create the ELResolver
chain for programmatic EL calls.
composite
- a CompositeELResolver
associate
- our ApplicationAssociatepublic static void buildJSPResolver(javax.el.CompositeELResolver composite, ApplicationAssociate associate)
Create the ELResolver
chain for JSP.
composite
- a CompositeELResolver
associate
- our ApplicationAssociatepublic static java.lang.Object evaluateValueExpression(javax.el.ValueExpression expression, javax.el.ELContext elContext)
public static javax.faces.el.PropertyResolver getDelegatePR(ApplicationAssociate associate, boolean provideDefault)
associate
- the ApplicationAssociate
PropertyResolver
s set via
Application.setPropertyResolver(javax.faces.el.PropertyResolver)
or, if that is null
, return the PropertyResolver
chain from the parsed configuration resources. If either of those are
null, and provideDefault
is true
,
return the DummyPropertyResolverImpl
.public static javax.faces.el.VariableResolver getDelegateVR(ApplicationAssociate associate, boolean provideDefault)
associate
- the ApplicationAssociate
VariableResolver
s set via
Application.setVariableResolver(javax.faces.el.VariableResolver)
or, if that is null
, return the VariableResolver
chain from the parsed configuration resources. If either of those are
null, , and provideDefault
is true
,
return the ChainAwareVariableResolver
.public static java.util.List getExpressionsFromString(java.lang.String expressionString) throws javax.faces.el.ReferenceSyntaxException
expressionString
- the expression string, with delimiters
intact.
javax.faces.el.ReferenceSyntaxException
public static ManagedBeanFactory.Scope getScope(java.lang.String valueBinding, java.lang.String[] outString) throws javax.faces.el.ReferenceSyntaxException
This method is used by the ManagedBeanFactory to ensure that properties set by an expression point to an object with an accepted lifespan.
get the scope of the expression. Return null
if
it isn't scoped
For example, the expression:
sessionScope.TestBean.one
should return "session"
as the scope.
valueBinding
- the expressionoutString
- an allocated String Array into which we put the
first segment.
javax.faces.el.ReferenceSyntaxException
public static javax.el.ValueExpression getValueExpression(java.lang.String valueRef)
ValueExpression
with the expected type of
Object.class
valueRef
- a value expression
ValueExpression
instance based off the
provided valueRef
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |