Package org.apache.mina.integration.ognl
Class PropertyTypeConverter
java.lang.Object
org.apache.mina.integration.ognl.PropertyTypeConverter
- All Implemented Interfaces:
ognl.TypeConverter
- Direct Known Subclasses:
ObjectMBean.OgnlTypeConverter
PropertyEditor-based implementation of OGNL TypeConverter.
This converter uses the PropertyEditor implementations in
mina-integration-beans module to perform conversion. To use this
converter:
OgnlContext ctx = Ognl.createDefaultContext(root);
ctx.put(OgnlContext.TYPE_CONVERTER_CONTEXT_KEY, new PropertyTypeConverter());
You can also override getPropertyEditor(Class, String, Class)
method to have more control over how an appropriate PropertyEditor
is chosen.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertValue(ognl.OgnlContext ctx, Object target, Member member, String attrName, Object value, Class toType) protected PropertyEditorgetPropertyEditor(Class<?> type, String attrName, Class<?> attrType)
-
Constructor Details
-
PropertyTypeConverter
public PropertyTypeConverter()
-
-
Method Details