org.springframework.beans.propertyeditors
Class ClassEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.ClassEditor
- All Implemented Interfaces:
- PropertyEditor
- public class ClassEditor
- extends PropertyEditorSupport
Editor for java.lang.Class, to directly feed a Class property
instead of using a String class name property.
Also supports "java.lang.String[]"-style array class names,
in contrast to the standard Class.forName
method.
Delegates to ClassUtils for actual class name resolution.
- Since:
- 13.05.2003
- Author:
- Juergen Hoeller
- See Also:
Class
,
Class.forName(java.lang.String)
,
ClassUtils.forName(java.lang.String)
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassEditor
public ClassEditor()
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getAsText
public String getAsText()
Copyright (C) 2003-2004 The Spring Framework Project.