类 ClassArrayEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.ClassArrayEditor
- 所有已实现的接口:
PropertyEditor
public class ClassArrayEditor extends PropertyEditorSupport
Property editor for an array ofClasses
, to enable the direct population of aClass[]
property without having to use aString
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 defaultClassEditor
, using the thread contextClassLoader
.ClassArrayEditor(ClassLoader classLoader)
Create a defaultClassArrayEditor
, using the givenClassLoader
.
构造器详细资料
ClassArrayEditor
public ClassArrayEditor()
Create a defaultClassEditor
, using the thread contextClassLoader
.
ClassArrayEditor
public ClassArrayEditor(ClassLoader classLoader)
Create a defaultClassArrayEditor
, using the givenClassLoader
.- 参数:
classLoader
- theClassLoader
to use (or passnull
for the thread contextClassLoader
)
方法详细资料
setAsText
public void setAsText(String text) throws IllegalArgumentException
- 指定者:
setAsText
在接口中PropertyEditor
- 覆盖:
setAsText
在类中PropertyEditorSupport
- 抛出:
IllegalArgumentException
getAsText
public String getAsText()
- 指定者:
getAsText
在接口中PropertyEditor
- 覆盖:
getAsText
在类中PropertyEditorSupport