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

ClassEditor

open class ClassEditor : PropertyEditorSupport

Property editor for 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.

Author
Juergen Hoeller

Author
Rick Evans

Since
13.05.2003

See Also
Class#forNameorg.springframework.util.ClassUtils#forName(String, ClassLoader)

Constructors

<init>

ClassEditor()

Create a default ClassEditor, using the thread context ClassLoader.

ClassEditor(classLoader: ClassLoader)

Create a default ClassEditor, using the given ClassLoader.

Functions

getAsText

open fun getAsText(): String

setAsText

open fun setAsText(text: String): Unit