javax.el
Class BeanELResolver

java.lang.Object
  extended by javax.el.ELResolver
      extended by javax.el.BeanELResolver

public class BeanELResolver
extends ELResolver

Resolves properties based on beans.


Nested Class Summary
protected static class BeanELResolver.BeanProperties
           
 
Field Summary
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
BeanELResolver()
           
BeanELResolver(boolean isReadOnly)
           
 
Method Summary
 java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
           
 java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
           
 java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.Object property)
          If the base object is not null, returns the most general type of the property
 java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
           
 java.lang.Object invoke(ELContext context, java.lang.Object base, java.lang.Object methodObj, java.lang.Class<?>[] paramTypes, java.lang.Object[] params)
           
 boolean isReadOnly(ELContext env, java.lang.Object base, java.lang.Object property)
           
 void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanELResolver

public BeanELResolver()

BeanELResolver

public BeanELResolver(boolean isReadOnly)
Method Detail

getCommonPropertyType

public java.lang.Class<?> getCommonPropertyType(ELContext context,
                                                java.lang.Object base)
Specified by:
getCommonPropertyType in class ELResolver

getFeatureDescriptors

public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context,
                                                                              java.lang.Object base)
Specified by:
getFeatureDescriptors in class ELResolver

getType

public java.lang.Class<?> getType(ELContext context,
                                  java.lang.Object base,
                                  java.lang.Object property)
If the base object is not null, returns the most general type of the property

Specified by:
getType in class ELResolver
Parameters:
context -
base -
property -
Returns:

getValue

public java.lang.Object getValue(ELContext context,
                                 java.lang.Object base,
                                 java.lang.Object property)
Specified by:
getValue in class ELResolver

isReadOnly

public boolean isReadOnly(ELContext env,
                          java.lang.Object base,
                          java.lang.Object property)
Specified by:
isReadOnly in class ELResolver

setValue

public void setValue(ELContext context,
                     java.lang.Object base,
                     java.lang.Object property,
                     java.lang.Object value)
Specified by:
setValue in class ELResolver

invoke

public java.lang.Object invoke(ELContext context,
                               java.lang.Object base,
                               java.lang.Object methodObj,
                               java.lang.Class<?>[] paramTypes,
                               java.lang.Object[] params)
Overrides:
invoke in class ELResolver