Interface SparkClassUtils


public interface SparkClassUtils
  • Method Details

    • random

      Random random()
    • getSparkClassLoader

      ClassLoader getSparkClassLoader()
    • getContextOrSparkClassLoader

      ClassLoader getContextOrSparkClassLoader()
    • classForName

      <C> Class<C> classForName(String className, boolean initialize, boolean noSparkClassLoader)
      Preferred alternative to Class.forName(className), as well as Class.forName(className, initialize, loader) with current thread's ContextClassLoader.
      Parameters:
      className - (undocumented)
      initialize - (undocumented)
      noSparkClassLoader - (undocumented)
      Returns:
      (undocumented)
    • classIsLoadable

      boolean classIsLoadable(String clazz)
      Determines whether the provided class is loadable in the current thread.