com.liferay.faces.util.el
Class ELResolverBase
java.lang.Object
javax.el.ELResolver
com.liferay.faces.util.el.ELResolverBase
- All Implemented Interfaces:
- Serializable
public abstract class ELResolverBase
- extends javax.el.ELResolver
- implements Serializable
This is a convenience base class that extends ELResolver. A subclasses must be designed to be instantiated as
a singleton because the JavaDoc for Application.getELResolver() indicates that an ELResolver should
be a singleton instance. This class implements the Serializable interface as a clue to subclasses that they
should implement a stateless, thread-safe singleton design. Subclasses should call the static addFeatureDescriptor(String, Class) method from a static block in order to add to the list of feature
descriptors.
- Author:
- Neil Griffin
- See Also:
- Serialized Form
| Fields inherited from class javax.el.ELResolver |
RESOLVABLE_AT_DESIGN_TIME, TYPE |
|
Method Summary |
protected static void |
addFeatureDescriptor(String featureName,
Class<?> classType)
Deprecated. Use newFeatureDescriptor(java.lang.String, java.lang.Class) and ELResolverBase(java.beans.FeatureDescriptor...) instead. |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(javax.el.ELContext elContext,
Object base)
|
Class<?> |
getType(javax.el.ELContext elContext,
Object base,
Object property)
|
Object |
getValue(javax.el.ELContext elContext,
Object base,
Object property)
|
boolean |
isReadOnly(javax.el.ELContext elContext,
Object base,
Object property)
|
protected static FeatureDescriptor |
newFeatureDescriptor(String featureName,
Class<?> classType)
|
protected abstract Object |
resolveProperty(javax.el.ELContext elContext,
Object base,
String property)
|
protected abstract Object |
resolveVariable(javax.el.ELContext elContext,
String varName)
|
void |
setValue(javax.el.ELContext elContext,
Object base,
Object property,
Object value)
|
| Methods inherited from class javax.el.ELResolver |
getCommonPropertyType, invoke |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELResolverBase
public ELResolverBase()
ELResolverBase
protected ELResolverBase(FeatureDescriptor... featureDescriptors)
addFeatureDescriptor
@Deprecated
protected static void addFeatureDescriptor(String featureName,
Class<?> classType)
- Deprecated. Use
newFeatureDescriptor(java.lang.String, java.lang.Class) and ELResolverBase(java.beans.FeatureDescriptor...) instead.
- Parameters:
featureName - classType -
newFeatureDescriptor
protected static FeatureDescriptor newFeatureDescriptor(String featureName,
Class<?> classType)
getFeatureDescriptors
public Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext elContext,
Object base)
- Specified by:
getFeatureDescriptors in class javax.el.ELResolver
getType
public Class<?> getType(javax.el.ELContext elContext,
Object base,
Object property)
- Specified by:
getType in class javax.el.ELResolver
getValue
public Object getValue(javax.el.ELContext elContext,
Object base,
Object property)
- Specified by:
getValue in class javax.el.ELResolver
isReadOnly
public boolean isReadOnly(javax.el.ELContext elContext,
Object base,
Object property)
- Specified by:
isReadOnly in class javax.el.ELResolver
setValue
public void setValue(javax.el.ELContext elContext,
Object base,
Object property,
Object value)
- Specified by:
setValue in class javax.el.ELResolver
resolveProperty
protected abstract Object resolveProperty(javax.el.ELContext elContext,
Object base,
String property)
resolveVariable
protected abstract Object resolveVariable(javax.el.ELContext elContext,
String varName)
Copyright © 2019 Liferay, Inc.. All rights reserved.