Module de.focus_shift.jollyday.core
Class ClassLoadingUtil
- java.lang.Object
-
- de.focus_shift.jollyday.core.util.ClassLoadingUtil
-
public class ClassLoadingUtil extends Object
ClassLoadingUtil class.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoadergetClassloader()Returns the classloader.static Class<?>loadClass(String className)Loads the class by class name with the current threads context classloader.
-
-
-
Method Detail
-
loadClass
public static Class<?> loadClass(String className) throws ClassNotFoundException
Loads the class by class name with the current threads context classloader. If there occurs an exception the class will be loaded by default classloader.- Parameters:
className- aStringobject.- Returns:
- a
Classobject. - Throws:
ClassNotFoundException- if any.
-
getClassloader
public static ClassLoader getClassloader()
Returns the classloader.- Returns:
- the current classloader
- See Also:
Class.getClassLoader()
-
-