Class ForceLoad

java.lang.Object
com.yahoo.system.ForceLoad

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

    • ForceLoad

      public ForceLoad()
  • Method Details

    • 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