public abstract class ELResolverBase extends javax.el.ELResolver implements Serializable
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.Constructor and Description |
---|
ELResolverBase() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addFeatureDescriptor(String featureName,
Class<?> classType) |
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 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) |
protected static void addFeatureDescriptor(String featureName, Class<?> classType)
public Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext elContext, Object base)
getFeatureDescriptors
in class javax.el.ELResolver
public Class<?> getType(javax.el.ELContext elContext, Object base, Object property)
getType
in class javax.el.ELResolver
public Object getValue(javax.el.ELContext elContext, Object base, Object property)
getValue
in class javax.el.ELResolver
public boolean isReadOnly(javax.el.ELContext elContext, Object base, Object property)
isReadOnly
in class javax.el.ELResolver
public void setValue(javax.el.ELContext elContext, Object base, Object property, Object value)
setValue
in class javax.el.ELResolver
protected abstract Object resolveProperty(javax.el.ELContext elContext, Object base, String property)
Copyright © 2018 Liferay, Inc.. All rights reserved.