org.springframework.beans.propertyeditors
Class ClassEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.springframework.beans.propertyeditors.ClassEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class ClassEditor
extends java.beans.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.

Since:
13.05.2003
Author:
Juergen Hoeller
See Also:
Class, Class.forName(java.lang.String)

Field Summary
static java.lang.String ARRAY_SUFFIX
           
 
Constructor Summary
ClassEditor()
           
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String text)
           
 
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
 

Field Detail

ARRAY_SUFFIX

public static final java.lang.String ARRAY_SUFFIX
See Also:
Constant Field Values
Constructor Detail

ClassEditor

public ClassEditor()
Method Detail

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getAsText

public java.lang.String getAsText()


Copyright (C) 2003-2004 The Spring Framework Project.