| This utility class allows for initialization of all classes
at startup to avoid initialization delays at an innapropriate time.
Note: Users might want to disable logging when initializing run-time
classes at start-up because of the presence of old classes (never used)
in the jar files for which initialization fails. For example:[code]
public static main(String[] args) {
LogContext.enter(LogContext.NULL); // Temporarely disables logging errors and warnings.
try {
ClassInitializer.initializeAll(); // Initializes bootstrap, extensions and classpath classes.
} finally {
LogContext.exit(LogContext.NULL); // Goes back to default logging.
}
...
}[/code]
author: Jean-Marie Dautelle version: 3.6, November 6, 2005 |