Package org.apache.mina.integration.ognl
Class PropertyTypeConverter
- java.lang.Object
-
- org.apache.mina.integration.ognl.PropertyTypeConverter
-
- All Implemented Interfaces:
ognl.TypeConverter
public class PropertyTypeConverter extends Object implements ognl.TypeConverter
PropertyEditor
-based implementation of OGNLTypeConverter
. This converter uses thePropertyEditor
implementations in mina-integration-beans module to perform conversion. To use this converter:
You can also override getPropertyEditor(Class, String, Class) method to have more control over how an appropriateOgnlContext ctx = Ognl.createDefaultContext(root); ctx.put(OgnlContext.TYPE_CONVERTER_CONTEXT_KEY, new PropertyTypeConverter());
PropertyEditor
is chosen.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description PropertyTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
convertValue(Map ctx, Object target, Member member, String attrName, Object value, Class toType)
protected PropertyEditor
getPropertyEditor(Class<?> type, String attrName, Class<?> attrType)
-
-
-
Method Detail
-
convertValue
public Object convertValue(Map ctx, Object target, Member member, String attrName, Object value, Class toType)
- Specified by:
convertValue
in interfaceognl.TypeConverter
-
getPropertyEditor
protected PropertyEditor getPropertyEditor(Class<?> type, String attrName, Class<?> attrType)
-
-