spring-framework / org.springframework.beans.propertyeditors / ClassArrayEditor

ClassArrayEditor

open class ClassArrayEditor : PropertyEditorSupport

Property editor for an array of Class, 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.

Author
Rob Harrop

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

ClassArrayEditor()

Create a default ClassEditor, using the thread context ClassLoader.

ClassArrayEditor(classLoader: ClassLoader)

Create a default ClassArrayEditor, using the given ClassLoader.

Functions

getAsText

open fun getAsText(): String

setAsText

open fun setAsText(text: String): Unit