Package org.apache.xbean.propertyeditor
Class PropertyEditors
- java.lang.Object
-
- org.apache.xbean.propertyeditor.PropertyEditors
-
public class PropertyEditors extends java.lang.Object
The property editor manager. This orchestrates Geronimo usage of property editors, allowing additional search paths to be added and specific editors to be registered.- Version:
- $Rev: 6687 $
-
-
Constructor Summary
Constructors Constructor Description PropertyEditors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canConvert(java.lang.Class type)
static boolean
canConvert(java.lang.String type, java.lang.ClassLoader classLoader)
static java.lang.Object
getValue(java.lang.reflect.Type type, java.lang.String value)
static java.lang.Object
getValue(java.lang.String type, java.lang.String value, java.lang.ClassLoader classLoader)
static boolean
isRegisterWithVM()
Are converters registered with the VM PropertyEditorManager.static void
registerConverter(Converter converter)
static void
setRegisterWithVM(boolean registerWithVM)
Sets if converters registered with the VM PropertyEditorManager.static java.lang.String
toString(java.lang.Object value)
-
-
-
Method Detail
-
isRegisterWithVM
public static boolean isRegisterWithVM()
Are converters registered with the VM PropertyEditorManager. By default converters are not registered with the VM as this creates problems for IDE and Spring because they rely in their specific converters being registered to function properly.
-
setRegisterWithVM
public static void setRegisterWithVM(boolean registerWithVM)
Sets if converters registered with the VM PropertyEditorManager. If the new value is true, all currently registered converters are immediately registered with the VM.
-
registerConverter
public static void registerConverter(Converter converter)
-
canConvert
public static boolean canConvert(java.lang.String type, java.lang.ClassLoader classLoader)
-
canConvert
public static boolean canConvert(java.lang.Class type)
-
toString
public static java.lang.String toString(java.lang.Object value) throws PropertyEditorException
- Throws:
PropertyEditorException
-
getValue
public static java.lang.Object getValue(java.lang.String type, java.lang.String value, java.lang.ClassLoader classLoader) throws PropertyEditorException
- Throws:
PropertyEditorException
-
getValue
public static java.lang.Object getValue(java.lang.reflect.Type type, java.lang.String value) throws PropertyEditorException
- Throws:
PropertyEditorException
-
-