org.apache.geronimo.common.propertyeditor
Class ClassEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.apache.geronimo.common.propertyeditor.TextPropertyEditorSupport
          extended byorg.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

Version:
$Rev: 356022 $

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, getTags, isPaintable, paintValue, removePropertyChangeListener, 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.

Returns:
a Class object created from the text value of the name.
Throws:
PropertyEditorException - Unable to resolve the Class object from the name.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.