MyCassandra-0.2.1/src/java/org/apache/cassandra/utils/FBUtilities.java
/**
     * @return The Class for the given name.
     * @param classname Fully qualified classname.
     * @param readable Descriptive noun for the role the class plays.
     * @throws ConfigurationException If the class cannot be found.
     */
@return The Class for the given name.
@param classname Fully qualified classname.
@param readable Descriptive noun for the role the class plays.
@throws ConfigurationException If the class cannot be found.
@return The Class for the given name . @param classname Fully qualified classname . @param readable Descriptive noun for the role the class plays . @throws ConfigurationException If the class cannot be found .
public static <T> Class<T> classForName(String classname, String readable) throws ConfigurationException
    {
        try
        {
            return (Class<T>)Class.forName(classname);
        }
        catch (ClassNotFoundException e)
        {
            throw new ConfigurationException(String.format("Unable to find %s class '%s'", readable, classname));
        }
    }
public static < T > Class < T > classForName ( String classname , String readable ) throws ConfigurationException { try { return ( Class < T > ) Class . forName ( classname ) ; } catch ( ClassNotFoundException e ) { throw new ConfigurationException ( String . format ( "Unable to find %s class '%s'" , readable , classname ) ) ; } }
@return The Class for the given name.
@return The Class for the given name .