public static PropertyEditor findEditor ( final String typeName ) throws ClassNotFoundException { // see if it is a primitive type first Class < ? > type = Classes . getPrimitiveTypeForName ( typeName ) ; if ( type == null ) { // nope try look up ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; type = loader . loadClass ( typeName ) ; } return PropertyEditorManager . findEditor ( type ) ; }
Locate a value editor for a given target type .