Top Description Constructors Methods
io.netty5.util.internal

public final Class ClassInitializerUtil

extends Object
Class Inheritance

Utility which ensures that classes are loaded by the ClassLoader.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
tryLoadClass(ClassLoader classLoader, String className)

public static void
tryLoadClasses(Class<?>
the Class that wants to load the classes.
loadingClass
,
Class<?>...
the classes to load.
classes
)

Preload the given classes and so ensure the ClassLoader has these loaded after this method call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClassInitializerUtilback to summary
private ClassInitializerUtil()

Method Detail

tryLoadClassback to summary
private static void tryLoadClass(ClassLoader classLoader, String className)
tryLoadClassesback to summary
public static void tryLoadClasses(Class<?> loadingClass, Class<?>... classes)

Preload the given classes and so ensure the ClassLoader has these loaded after this method call.

Parameters
loadingClass:Class<?>

the Class that wants to load the classes.

classes:Class<?>[]

the classes to load.