Class ForceLoad


  • public class ForceLoad
    extends java.lang.Object
    Utility class used to force the loading of other classes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ForceLoad()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void forceLoad​(java.lang.String packageName, java.lang.String[] classNames, java.lang.ClassLoader loader)
      Force the loading of the given classes.
      • Methods inherited from class java.lang.Object

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

      • ForceLoad

        public ForceLoad()
    • Method Detail

      • forceLoad

        public static void forceLoad​(java.lang.String packageName,
                                     java.lang.String[] classNames,
                                     java.lang.ClassLoader loader)
                              throws ForceLoadError
        Force the loading of the given classes. If any of the named classes can not be loaded, an error will be thrown.
        Parameters:
        packageName - the name of the package for which we want to forceload classes.
        classNames - array of names of classes (without package prefix) to force load.
        Throws:
        ForceLoadError