Package io.netty.util.internal
Class ClassInitializerUtil
java.lang.Object
io.netty.util.internal.ClassInitializerUtil
Utility which ensures that classes are loaded by the
ClassLoader
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
tryLoadClass
(ClassLoader classLoader, String className) static void
tryLoadClasses
(Class<?> loadingClass, Class<?>... classes) Preload the given classes and so ensure theClassLoader
has these loaded after this method call.
-
Constructor Details
-
ClassInitializerUtil
private ClassInitializerUtil()
-
-
Method Details
-
tryLoadClasses
Preload the given classes and so ensure theClassLoader
has these loaded after this method call.- Parameters:
loadingClass
- theClass
that wants to load the classes.classes
- the classes to load.
-
tryLoadClass
-