Class ClassInitializerUtil


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void tryLoadClasses​(java.lang.Class<?> loadingClass, java.lang.Class<?>... classes)
      Preload the given classes and so ensure the ClassLoader has these loaded after this method call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • tryLoadClasses

        public static void tryLoadClasses​(java.lang.Class<?> loadingClass,
                                          java.lang.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.