Package org.apache.tiles.el
Class TilesContextBeanELResolver
java.lang.Object
javax.el.ELResolver
org.apache.tiles.el.TilesContextBeanELResolver
public class TilesContextBeanELResolver
extends javax.el.ELResolver
Resolves 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) $
-
Field Summary
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectBeanInfo
(Map<String, ? extends Object> map, List<FeatureDescriptor> list) Collects bean infos from a map's values and filling a list.protected Object
findObjectByProperty
(javax.el.ELContext context, Object property) Finds an object in request, session or application scope, in this order.Class
<?> getCommonPropertyType
(javax.el.ELContext context, Object base) getFeatureDescriptors
(javax.el.ELContext context, Object base) protected Object
Returns an object from a map in a null-safe manner.Class
<?> boolean
isReadOnly
(javax.el.ELContext context, Object base, Object property) void
Methods inherited from class javax.el.ELResolver
convertToType, invoke
-
Constructor Details
-
TilesContextBeanELResolver
public TilesContextBeanELResolver()
-
-
Method Details
-
getCommonPropertyType
- Specified by:
getCommonPropertyType
in classjavax.el.ELResolver
-
getFeatureDescriptors
- Specified by:
getFeatureDescriptors
in classjavax.el.ELResolver
-
getType
- Specified by:
getType
in classjavax.el.ELResolver
-
getValue
- Specified by:
getValue
in classjavax.el.ELResolver
-
isReadOnly
- Specified by:
isReadOnly
in classjavax.el.ELResolver
-
setValue
- Specified by:
setValue
in classjavax.el.ELResolver
-
collectBeanInfo
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
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
null
otherwise. - Since:
- 2.2.1
-
getObject
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
null
otherwise. - Since:
- 2.2.1
-