org.apache.geronimo.common.propertyeditor
Class ClassEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
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
Method Summary |
Object |
getValue()
Return a resolved class using the text value of the property as the name. |
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 |
ClassEditor
public ClassEditor()
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.