Package com.yahoo.system
Class ForceLoad
java.lang.Object
com.yahoo.system.ForceLoad
Utility class used to force the loading of other classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
forceLoad
(String packageName, String[] classNames, ClassLoader loader) Force the loading of the given 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
-