Class ClassEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.ClassEditor
- All Implemented Interfaces:
- PropertyEditor
Property editor for 
java.lang.Class, to enable the direct
 population of a Class property without recourse to having to use a
 String class name property as bridge.
 Also supports "java.lang.String[]"-style array class names, in contrast to the
 standard Class.forName(String) method.
- Since:
- 13.05.2003
- Author:
- Juergen Hoeller, Rick Evans
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a default ClassEditor, using the thread context ClassLoader.ClassEditor(ClassLoader classLoader) Create a default ClassEditor, using the given ClassLoader.
- 
Method SummaryMethods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
- 
Constructor Details- 
ClassEditorpublic ClassEditor()Create a default ClassEditor, using the thread context ClassLoader.
- 
ClassEditorCreate a default ClassEditor, using the given ClassLoader.- Parameters:
- classLoader- the ClassLoader to use (or- nullfor the thread context ClassLoader)
 
 
- 
- 
Method Details- 
setAsText- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin class- PropertyEditorSupport
- Throws:
- IllegalArgumentException
 
- 
getAsText- Specified by:
- getAsTextin interface- PropertyEditor
- Overrides:
- getAsTextin class- PropertyEditorSupport
 
 
-