org.apache.shindig.expressions
Class ShindigTypeConverter
java.lang.Object
org.apache.shindig.expressions.ShindigTypeConverter
- All Implemented Interfaces:
- ELTypeConverter
- Direct Known Subclasses:
- JasperTypeConverter, JuelTypeConverter
public class ShindigTypeConverter
- extends Object
- implements ELTypeConverter
Custom type converter class that overrides the default EL coercion rules
where necessary. Specifically, Booleans are handled differently,
and JSONArray is supported.
|
Method Summary |
|
convert(Object obj,
Class<T> type)
|
boolean |
isPostConvertible(Class<?> type)
for some EL without custom type conversion (Jasper), we want to delay
conversion until after expression has been evaluated (with minimal amount of coercion). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShindigTypeConverter
public ShindigTypeConverter()
isPostConvertible
public boolean isPostConvertible(Class<?> type)
- Description copied from interface:
ELTypeConverter
- for some EL without custom type conversion (Jasper), we want to delay
conversion until after expression has been evaluated (with minimal amount of coercion).
- Specified by:
isPostConvertible in interface ELTypeConverter
convert
public <T> T convert(Object obj,
Class<T> type)
throws javax.el.ELException
- Specified by:
convert in interface ELTypeConverter
- Throws:
javax.el.ELException
Copyright © 2007-2012. All Rights Reserved.