Class ClassArrayEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.ClassArrayEditor
- All Implemented Interfaces:
- PropertyEditor
Property editor for an array of 
Classes, to enable
 the direct population of a Class[] property without 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:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a defaultClassEditor, using the thread contextClassLoader.ClassArrayEditor(ClassLoader classLoader) Create a defaultClassArrayEditor, using the givenClassLoader.
- 
Method SummaryMethods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
- 
Constructor Details- 
ClassArrayEditorpublic ClassArrayEditor()Create a defaultClassEditor, using the thread contextClassLoader.
- 
ClassArrayEditorCreate a defaultClassArrayEditor, using the givenClassLoader.- Parameters:
- classLoader- the- ClassLoaderto use (or pass- 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
 
 
-