public class BeanELResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
BeanELResolver() |
BeanELResolver(boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getCommonPropertyType(ELContext context,
Object base) |
Iterator<FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
Object base) |
Class<?> |
getType(ELContext context,
Object base,
Object property) |
Object |
getValue(ELContext context,
Object base,
Object property) |
Object |
invoke(ELContext context,
Object base,
Object method,
Class<?>[] paramTypes,
Object[] params)
Invokes a method on the the given object.
|
boolean |
isReadOnly(ELContext context,
Object base,
Object property) |
void |
setValue(ELContext context,
Object base,
Object property,
Object value) |
public BeanELResolver()
public BeanELResolver(boolean readOnly)
public Class<?> getType(ELContext context, Object base, Object property)
getType
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose type is to be returnedpublic Object getValue(ELContext context, Object base, Object property)
getValue
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be returnedpublic void setValue(ELContext context, Object base, Object property, Object value)
setValue
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be setvalue
- The value to set the property topublic Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params)
ELResolver
null
.invoke
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the method is to be foundmethod
- The method to invokeparamTypes
- The types of the parameters of the method to invokeparams
- The parameters with which to invoke the methodnull
public boolean isReadOnly(ELContext context, Object base, Object property)
isReadOnly
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property to be checked for read only statustrue
if the identified property is read only,
otherwise false
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
getFeatureDescriptors
in class ELResolver
public Class<?> getCommonPropertyType(ELContext context, Object base)
getCommonPropertyType
in class ELResolver
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.