Class ClassLoadingUtil

java.lang.Object
de.focus_shift.jollyday.core.util.ClassLoadingUtil

public final class ClassLoadingUtil extends Object

ClassLoadingUtil class.

  • Method Details

    • loadClass

      public static @NonNull Class<?> loadClass(@NonNull String className) throws ClassNotFoundException
      Loads the class by class name with the current threads context classloader. If there occurs an exception the class will be loaded by default classloader.
      Parameters:
      className - a String object.
      Returns:
      a Class object.
      Throws:
      ClassNotFoundException - if any.
    • getClassloader

      public static @NonNull ClassLoader getClassloader()
      Returns the classloader.
      Returns:
      the current classloader
      See Also: