This project has retired. For details please refer to its Attic page.
TilesContextELResolver (Tiles 2 2.1.4 API)

org.apache.tiles.evaluator.el
Class TilesContextELResolver

Package class diagram package TilesContextELResolver
java.lang.Object
  extended by javax.el.ELResolver
      extended by javax.el.BeanELResolver
          extended by org.apache.tiles.evaluator.el.TilesContextELResolver

public class TilesContextELResolver
extends javax.el.BeanELResolver

Resolves properties of TilesRequestContext and TilesApplicationContext.

Since:
2.1.0
Version:
$Rev: 734996 $ $Date: 2009-01-16 14:27:28 +0100 (ven, 16 gen 2009) $

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.el.BeanELResolver
javax.el.BeanELResolver.BeanProperties, javax.el.BeanELResolver.BeanProperty
 
Field Summary
protected  Set<String> applicationProperties
          Contains the properties of TilesApplicationContext.
protected  List<FeatureDescriptor> descriptors
          The descriptors of TilesRequestContext and TilesApplicationContext.
protected  Set<String> requestProperties
          Contains the properties of TilesRequestContext.
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
TilesContextELResolver()
          Constructor.
 
Method Summary
protected  void collectBeanInfo(Class<?> clazz, List<FeatureDescriptor> list, Set<String> properties)
          Collects bean infos from a class and filling a list.
 Class<?> getCommonPropertyType(javax.el.ELContext context, Object base)
          
 Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, Object base)
          
 Class<?> getType(javax.el.ELContext context, Object base, Object property)
          
 Object getValue(javax.el.ELContext context, Object base, Object property)
          
 boolean isReadOnly(javax.el.ELContext context, Object base, Object property)
          
 void setValue(javax.el.ELContext context, Object base, Object property, Object value)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptors

protected List<FeatureDescriptor> descriptors
The descriptors of TilesRequestContext and TilesApplicationContext.

Since:
2.1.0

requestProperties

protected Set<String> requestProperties
Contains the properties of TilesRequestContext.

Since:
2.1.0

applicationProperties

protected Set<String> applicationProperties
Contains the properties of TilesApplicationContext.

Since:
2.1.0
Constructor Detail

TilesContextELResolver

public TilesContextELResolver()
Constructor.

Method Detail

getCommonPropertyType

public Class<?> getCommonPropertyType(javax.el.ELContext context,
                                      Object base)

Overrides:
getCommonPropertyType in class javax.el.BeanELResolver

getFeatureDescriptors

public Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context,
                                                         Object base)

Overrides:
getFeatureDescriptors in class javax.el.BeanELResolver

getType

public Class<?> getType(javax.el.ELContext context,
                        Object base,
                        Object property)

Overrides:
getType in class javax.el.BeanELResolver

getValue

public Object getValue(javax.el.ELContext context,
                       Object base,
                       Object property)

Overrides:
getValue in class javax.el.BeanELResolver

isReadOnly

public boolean isReadOnly(javax.el.ELContext context,
                          Object base,
                          Object property)

Overrides:
isReadOnly in class javax.el.BeanELResolver

setValue

public void setValue(javax.el.ELContext context,
                     Object base,
                     Object property,
                     Object value)

Overrides:
setValue in class javax.el.BeanELResolver

collectBeanInfo

protected void collectBeanInfo(Class<?> clazz,
                               List<FeatureDescriptor> list,
                               Set<String> properties)
Collects bean infos from a class and filling a list.

Parameters:
clazz - The class to be inspected.
list - The list to fill.
properties - The properties set to be filled.
Since:
2.1.0


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.