Class ClassEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class ClassEditor
    extends java.beans.PropertyEditorSupport
    Converts Strings to Class references for Spring.
    Since:
    Aug 8, 2005
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassEditor()  
      ClassEditor​(java.lang.Object source)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsText()  
      void setAsText​(java.lang.String className)  
      void setClassLoader​(java.lang.ClassLoader classLoader)  
      • 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
    • Constructor Detail

      • ClassEditor

        public ClassEditor()
      • ClassEditor

        public ClassEditor​(java.lang.Object source)
    • Method Detail

      • setClassLoader

        public void setClassLoader​(java.lang.ClassLoader classLoader)
      • getAsText

        public java.lang.String getAsText()
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Overrides:
        getAsText in class java.beans.PropertyEditorSupport
      • setAsText

        public void setAsText​(java.lang.String className)
                       throws java.lang.IllegalArgumentException
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
        Throws:
        java.lang.IllegalArgumentException