Class ClassInitializerUtil


  • public final class ClassInitializerUtil
    extends Object
    Utility which ensures that classes are loaded by the ClassLoader.
    • Method Detail

      • tryLoadClasses

        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 - the Class that wants to load the classes.
        classes - the classes to load.