Module de.focus_shift.jollyday.core
Class ClassLoadingUtil
java.lang.Object
de.focus_shift.jollyday.core.util.ClassLoadingUtil
ClassLoadingUtil class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ClassLoaderReturns the classloader.static @NonNull Class<?>Loads the class by class name with the current threads context classloader.
-
Method Details
-
loadClass
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
Returns the classloader.- Returns:
- the current classloader
- See Also:
-