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.
Class#forName, org.springframework.util.ClassUtils#forName(String, ClassLoader)
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassEditor(ClassLoader
the ClassLoader to use
(or classLoader)null for the thread context ClassLoader)Create a default ClassEditor, using the given ClassLoader. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAsText()
Overrides java. Implements java. Gets the property value as a string suitable for presentation to a human to edit. |
| public void | setAsText(String
The string to be parsed. text)Overrides java. Implements java. Sets the property value by parsing a given String. |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader
| |
| ClassEditor | back to summary |
|---|---|
| public ClassEditor() Create a default ClassEditor, using the thread context ClassLoader. | |
| ClassEditor | back to summary |
|---|---|
| public ClassEditor(ClassLoader classLoader) Create a default ClassEditor, using the given ClassLoader.
| |
| getAsText | back to summary |
|---|---|
| public String getAsText() Overrides java. Implements java. Doc from java. Gets the property value as a string suitable for presentation to a human to edit. | |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) throws IllegalArgumentException Overrides java. Implements java. Doc from java. Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text. | |