public class ClassArrayEditor
extends java.beans.PropertyEditorSupport
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.
Constructor and Description |
---|
ClassArrayEditor()
Create a default
ClassEditor , using the thread
context ClassLoader . |
ClassArrayEditor(java.lang.ClassLoader classLoader)
Create a default
ClassArrayEditor , using the given
ClassLoader . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText() |
void |
setAsText(java.lang.String text) |
public ClassArrayEditor()
ClassEditor
, using the thread
context ClassLoader
.public ClassArrayEditor(@Nullable java.lang.ClassLoader classLoader)
ClassArrayEditor
, using the given
ClassLoader
.classLoader
- the ClassLoader
to use
(or pass null
for the thread context ClassLoader
)public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport