org.springframework.beans.propertyeditors

## 类 ClassEditor

- java.lang.Object
- - java.beans.PropertyEditorSupport
  - - org.springframework.beans.propertyeditors.ClassEditor

- 所有已实现的接口:
    PropertyEditor

      public class ClassEditor
      extends PropertyEditorSupport

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

  从以下版本开始:
    13.05.2003
  作者:
    Juergen Hoeller, Rick Evans
  另请参阅:
    `Class.forName(java.lang.String)`, `ClassUtils.forName(String, ClassLoader)`

- - ### 构造器概要

    构造器
    构造器和说明
    `ClassEditor()` Create a default ClassEditor, using the thread context ClassLoader.
    `ClassEditor(ClassLoader classLoader)` Create a default ClassEditor, using the given ClassLoader.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getAsText()`
    `void` | `setAsText(String text)`

    - ### 从类继承的方法 java.beans.PropertyEditorSupport

      `addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ClassEditor

          public ClassEditor()

      Create a default ClassEditor, using the thread context ClassLoader.

    - #### ClassEditor

          public ClassEditor(@Nullable
                             ClassLoader classLoader)

      Create a default ClassEditor, using the given ClassLoader.
      参数:
        `classLoader` - the ClassLoader to use (or `null` for the thread context ClassLoader)

  - ### 方法详细资料

    - #### setAsText

          public void setAsText(String text)
                         throws IllegalArgumentException

      指定者:
        `setAsText` 在接口中 `PropertyEditor`
      覆盖:
        `setAsText` 在类中 `PropertyEditorSupport`
      抛出:
        `IllegalArgumentException`

    - #### getAsText

          public String getAsText()

      指定者:
        `getAsText` 在接口中 `PropertyEditor`
      覆盖:
        `getAsText` 在类中 `PropertyEditorSupport`