Class ClassLoaderUtil
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.ClassLoaderUtil
This utility class is used for resolving a right ClassLoader from
a given class. getClassLoader always returns a non-null ClassLoader
even a class is loaded through the bootstrap class loader of JRE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoaderReturns a fallback class loader.static ClassLoadergetClassLoader(Class<?> cls) Returns the class loader used for loading the specified class.
-
Constructor Details
-
ClassLoaderUtil
public ClassLoaderUtil()
-
-
Method Details
-
getClassLoader
Returns the class loader used for loading the specified class.- Parameters:
cls- The class- Returns:
- the class loader
-
getClassLoader
-