org.springframework.beans.propertyeditors

## 类 ClassArrayEditor

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

- 所有已实现的接口:
    PropertyEditor

      public class ClassArrayEditor
      extends PropertyEditorSupport

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

  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `ClassArrayEditor()` Create a default `ClassEditor`, using the thread context `ClassLoader`.
    `ClassArrayEditor(ClassLoader classLoader)` Create a default `ClassArrayEditor`, 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`

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

    - #### ClassArrayEditor

          public ClassArrayEditor()

      Create a default `ClassEditor`, using the thread context `ClassLoader`.

    - #### ClassArrayEditor

          public ClassArrayEditor(@Nullable
                                  ClassLoader classLoader)

      Create a default `ClassArrayEditor`, using the given `ClassLoader`.
      参数:
        `classLoader` - the `ClassLoader` to use (or pass `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`