src/main/java/org/jboss/util/propertyeditor/PropertyEditors.java
/**
    * Locate a value editor for a given target type.
    *
    * @param typeName    The class name of the object to be edited.
    * @return            An editor for the given type or null if none was found.
    * @throws ClassNotFoundException when the class could not be found
    */
Locate a value editor for a given target type.
@param typeName    The class name of the object to be edited.
@return            An editor for the given type or null if none was found.
@throws ClassNotFoundException when the class could not be found
Locate a value editor for a given target type . @param typeName The class name of the object to be edited . @return An editor for the given type or null if none was found . @throws ClassNotFoundException when the class could not be found
public static PropertyEditor findEditor(final String typeName)
      throws ClassNotFoundException
   {
      Class<?> type = Classes.getPrimitiveTypeForName(typeName);
      if (type == null)
      {
         ClassLoader loader = Thread.currentThread().getContextClassLoader();
         type = loader.loadClass(typeName);
      }
      return PropertyEditorManager.findEditor(type);
   }
public static PropertyEditor findEditor ( final String typeName ) throws ClassNotFoundException { Class < ? > type = Classes . getPrimitiveTypeForName ( typeName ) ; if ( type == null ) { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; type = loader . loadClass ( typeName ) ; } return PropertyEditorManager . findEditor ( type ) ; }
Locate a value editor for a given target type.
Locate a value editor for a given target type .
// see if it is a primitive type first // nope try look up