Class ForceLoad


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

      • ForceLoad

        public ForceLoad()
    • Method Detail

      • forceLoad

        public static void forceLoad​(String packageName,
                                     String[] classNames,
                                     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