@ SuppressWarnings ( "unchecked" ) public static Class < ? extends IOReadableWritable > getRecordByName ( final String className ) throws ClassNotFoundException { // // Class<?> clazz = Class.forName(className, true, getClassLoader()); // if (IOReadableWritable.class.isAssignableFrom(clazz)) { // return clazz.asSubclass(IOReadableWritable.class); // } else { // return (Class<? extends IOReadableWritable>) clazz; // } // return ( Class < ? extends IOReadableWritable > ) Class . forName ( className , true , getClassLoader ( ) ) ; }
Searches for a record class by its name and attempts to load it .