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 java.lang.Object implements ognl.TypeConverterPropertyEditor-based implementation of OGNLTypeConverter. This converter uses thePropertyEditorimplementations 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());PropertyEditoris chosen.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description PropertyTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectconvertValue(java.util.Map ctx, java.lang.Object target, java.lang.reflect.Member member, java.lang.String attrName, java.lang.Object value, java.lang.Class toType)protected java.beans.PropertyEditorgetPropertyEditor(java.lang.Class<?> type, java.lang.String attrName, java.lang.Class<?> attrType)
-
-
-
Method Detail
-
convertValue
public java.lang.Object convertValue(java.util.Map ctx, java.lang.Object target, java.lang.reflect.Member member, java.lang.String attrName, java.lang.Object value, java.lang.Class toType)- Specified by:
convertValuein interfaceognl.TypeConverter
-
getPropertyEditor
protected java.beans.PropertyEditor getPropertyEditor(java.lang.Class<?> type, java.lang.String attrName, java.lang.Class<?> attrType)
-
-