Documentation of 'javolution37.javolution.lang.ClassInitializer' Java class
ClassInitializer
javolution37.javolution.lang

Class ClassInitializer



  • public class ClassInitializer
    extends java.lang.Object

    This utility class allows for initialization of all Java(tm) classes at startup to avoid initialization delays at an innapropriate time.

    Initialization logs are available through LogContext. For example:

         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);
             }
             ...
         }

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void initialize(java.lang.Class cls)
      Initializes the specified class.
      static void initialize(java.lang.String className)
      Initializes the class with the specified name.
      static void initializeAll()
      Initializes all runtime and classpath classes.
      static void initializeClassPath()
      Initializes all classes in current classpath.
      static void initializeDir(java.lang.String dirName)
      Initializes all the classes in the specified directory.
      static void initializeJar(java.lang.String jarName)
      Initializes all the classes in the specified jar file.
      static void initializeRuntime()
      Initializes runtime classes (bootstrap classes in System.getProperty("sun.boot.class.path")) and the extension .jar in lib/ext directory).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initializeRuntime

        public static void initializeRuntime()
        Initializes runtime classes (bootstrap classes in System.getProperty("sun.boot.class.path")) and the extension .jar in lib/ext directory).
      • initializeClassPath

        public static void initializeClassPath()
        Initializes all classes in current classpath.
      • initialize

        public static void initialize(java.lang.Class cls)
        Initializes the specified class.
        Parameters:
        cls - the class to initialize.
      • initialize

        public static void initialize(java.lang.String className)
        Initializes the class with the specified name.
        Parameters:
        className - the name of the class to initialize.
      • initializeJar

        public static void initializeJar(java.lang.String jarName)
        Initializes all the classes in the specified jar file.
        Parameters:
        jarName - the jar filename.
      • initializeDir

        public static void initializeDir(java.lang.String dirName)
        Initializes all the classes in the specified directory.
        Parameters:
        dirName - the name of the directory containing the classes to initialize.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.