org.apache.geronimo.common.propertyeditor
Class ClassEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
          extended by org.apache.geronimo.common.propertyeditor.ClassEditor
All Implemented Interfaces:
PropertyEditor

public class ClassEditor
extends TextPropertyEditorSupport

A property editor for converting class names into class object instances


Constructor Summary
ClassEditor()
           
 
Method Summary
 Object getValue()
          Return a resolved class using the text value of the property as the name.
 
Methods inherited from class org.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
setAsText
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, 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()
Method Detail

getValue

public Object getValue()
Return a resolved class using the text value of the property as the name. The class is loading using the current context class loader, using the resolution rules defined by ClassLoading.java.

Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport
Returns:
a Class object created from the text value of the name.
Throws:
PropertyEditorException - Unable to resolve the Class object from the name.


Copyright © 2006 Apache Software Foundation. All Rights Reserved.