scala.tools.nsc.util

ScalaClassLoader

object ScalaClassLoader

Methods for obtaining various classloaders. appLoader: the application classloader. (Also called the java system classloader.) extLoader: the extension classloader. bootLoader: the boot classloader. contextLoader: the context classloader.

Source
ScalaClassLoader.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaClassLoader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class URLClassLoader extends java.net.URLClassLoader with ScalaClassLoader with HasClassPath

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def appLoader: ScalaClassLoader

  7. implicit def apply(cl: ClassLoader): ScalaClassLoader

    Returns loaders which are already ScalaClassLoaders unaltered, and translates java.

    Returns loaders which are already ScalaClassLoaders unaltered, and translates java.net.URLClassLoaders into scala URLClassLoaders. Otherwise creates a new wrapper.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def bootLoader: ScalaClassLoader

  10. def classExists(urls: Seq[URL], name: String): Boolean

    True if supplied class exists in supplied path

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def contextChain: List[ClassLoader]

  13. def contextLoader: ScalaClassLoader

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def extLoader: ScalaClassLoader

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def fromURLs(urls: Seq[URL], parent: ClassLoader = null): URLClassLoader

  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def guessClassPathString(default: String = ""): String

    Tries to guess the classpath by type matching the context classloader and its parents, looking for any classloaders which will reveal their classpath elements as urls.

    Tries to guess the classpath by type matching the context classloader and its parents, looking for any classloaders which will reveal their classpath elements as urls. It it can't find any, creates a classpath from the supplied string.

  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def loaderChain(head: ClassLoader): List[ClassLoader]

  24. def locate[T](implicit arg0: ClassTag[T]): URL

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def origin(x: Any): Option[URL]

    Finding what jar a clazz or instance came from

  29. def originOfClass(x: Class[_]): Option[URL]

  30. def pathToClass(clazz: Class[_]): String

  31. def pathToErasure[T](implicit arg0: ClassTag[T]): String

  32. def savingContextLoader[T](body: ⇒ T): T

  33. def setContext(cl: ClassLoader): Unit

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped