Package org.apache.tiles.el
Class TilesContextBeanELResolver
- java.lang.Object
-
- javax.el.ELResolver
-
- org.apache.tiles.el.TilesContextBeanELResolver
-
public class TilesContextBeanELResolver extends javax.el.ELResolverResolves beans in request, session and application scope.- Since:
- 2.2.1
- Version:
- $Rev: 1291847 $ $Date: 2012-02-22 02:09:30 +1100 (Wed, 22 Feb 2012) $
-
-
Constructor Summary
Constructors Constructor Description TilesContextBeanELResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectBeanInfo(java.util.Map<java.lang.String,? extends java.lang.Object> map, java.util.List<java.beans.FeatureDescriptor> list)Collects bean infos from a map's values and filling a list.protected java.lang.ObjectfindObjectByProperty(javax.el.ELContext context, java.lang.Object property)Finds an object in request, session or application scope, in this order.java.lang.Class<?>getCommonPropertyType(javax.el.ELContext context, java.lang.Object base)java.util.Iterator<java.beans.FeatureDescriptor>getFeatureDescriptors(javax.el.ELContext context, java.lang.Object base)protected java.lang.ObjectgetObject(java.util.Map<java.lang.String,? extends java.lang.Object> map, java.lang.String property)Returns an object from a map in a null-safe manner.java.lang.Class<?>getType(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)java.lang.ObjectgetValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)booleanisReadOnly(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)voidsetValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
-
-
-
Method Detail
-
getCommonPropertyType
public java.lang.Class<?> getCommonPropertyType(javax.el.ELContext context, java.lang.Object base)- Specified by:
getCommonPropertyTypein classjavax.el.ELResolver
-
getFeatureDescriptors
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, java.lang.Object base)- Specified by:
getFeatureDescriptorsin classjavax.el.ELResolver
-
getType
public java.lang.Class<?> getType(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)- Specified by:
getTypein classjavax.el.ELResolver
-
getValue
public java.lang.Object getValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)- Specified by:
getValuein classjavax.el.ELResolver
-
isReadOnly
public boolean isReadOnly(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)- Specified by:
isReadOnlyin classjavax.el.ELResolver
-
setValue
public void setValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)- Specified by:
setValuein classjavax.el.ELResolver
-
collectBeanInfo
protected void collectBeanInfo(java.util.Map<java.lang.String,? extends java.lang.Object> map, java.util.List<java.beans.FeatureDescriptor> list)Collects bean infos from a map's values and filling a list.- Parameters:
map- The map containing the bean to be inspected.list- The list to fill.- Since:
- 2.2.1
-
findObjectByProperty
protected java.lang.Object findObjectByProperty(javax.el.ELContext context, java.lang.Object property)Finds an object in request, session or application scope, in this order.- Parameters:
context- The context to use.property- The property used as an attribute name.- Returns:
- The found bean, if it exists, or
nullotherwise. - Since:
- 2.2.1
-
getObject
protected java.lang.Object getObject(java.util.Map<java.lang.String,? extends java.lang.Object> map, java.lang.String property)Returns an object from a map in a null-safe manner.- Parameters:
map- The map to use.property- The property to use as a key.- Returns:
- The object, if present, or
nullotherwise. - Since:
- 2.2.1
-
-