当前页面: 
在线文档首页 > 
Spring Framework 2.1.0 API 文档英文版
ClassArrayEditor (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.beans.propertyeditors
Class ClassArrayEditor
java.lang.Object
   java.beans.PropertyEditorSupport
java.beans.PropertyEditorSupport
       org.springframework.beans.propertyeditors.ClassArrayEditor
org.springframework.beans.propertyeditors.ClassArrayEditor
- All Implemented Interfaces: 
- 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.
- Since:
- 2.0
- Author:
- Rob Harrop
 
 
| Methods inherited from class java.beans.PropertyEditorSupport | 
| addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ClassArrayEditor
public ClassArrayEditor()
- Create a default ClassEditor, using the thread
 contextClassLoader.
 
ClassArrayEditor
public ClassArrayEditor(ClassLoader classLoader)
- Create a default ClassArrayEditor, using the givenClassLoader.
 
- Parameters:
- classLoader- the- ClassLoaderto use
 (or pass- nullfor the thread context- ClassLoader)
 
setAsText
public void setAsText(String text)
               throws IllegalArgumentException
- 
- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin class- PropertyEditorSupport
 
- 
- Throws:
- IllegalArgumentException
 
getAsText
public String getAsText()
- 
- Specified by:
- getAsTextin interface- PropertyEditor
- Overrides:
- getAsTextin class- PropertyEditorSupport
 
- 
 
Copyright © 2002-2007 The Spring Framework.