All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.tool.util.ReflectHelper Maven / Gradle / Ivy

There is a newer version: 5.6.15.Final
Show newest version
package org.hibernate.tool.util;

public class ReflectHelper {

	public static Class classForName(String name) throws ClassNotFoundException {
		try {
			ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
			if ( classLoader != null ) {
				return classLoader.loadClass(name);
			}
		}
		catch ( Throwable ignore ) {
		}
		return Class.forName( name );
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy