SpecialClassLoader

ammonite.runtime.SpecialClassLoader
See theSpecialClassLoader companion object
class SpecialClassLoader(parent: ClassLoader, parentSignature: Seq[(Either[String, URL], Long)], var specialLocalClasses: Set[String], urls: URL*) extends ReplClassLoader

Classloader used to implement the jar-downloading command-evaluating logic in Ammonite.

http://stackoverflow.com/questions/3544614/how-is-the-control-flow-to-findclass-of

Attributes

Companion
object
Graph
Supertypes
class ReplClassLoader
class URLClassLoader
trait Closeable
trait AutoCloseable
class SecureClassLoader
class ClassLoader
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def add(url: URL): Boolean
def addClassFile(name: String, bytes: Array[Byte]): Unit
def allJars: Seq[URL]
def classpathHash(wd: Option[Path]): Array[Byte]
def classpathSignature: Seq[(Either[String, URL], Long)]
def cloneClassLoader(parent: ClassLoader): SpecialClassLoader
override def close(): Unit

Attributes

Definition Classes
URLClassLoader -> Closeable -> AutoCloseable
override def findClass(name: String): Class[_]

Attributes

Definition Classes
URLClassLoader -> ClassLoader
def findClassPublic(name: String): Class[_]
override def findResource(name: String): URL

Attributes

Definition Classes
URLClassLoader -> ClassLoader
override def findResources(name: String): Enumeration[URL]

Attributes

Definition Classes
URLClassLoader -> ClassLoader
def hasUrl(url: URL): Boolean
def inMemoryClasses: Map[String, Array[Byte]]

Inherited methods

def clearAssertionStatus(): Unit

Attributes

Inherited from:
ClassLoader
final def getParent(): ClassLoader

Attributes

Inherited from:
ClassLoader
def getResource(x$0: String): URL

Attributes

Inherited from:
ClassLoader
def getResourceAsStream(x$0: String): InputStream

Attributes

Inherited from:
URLClassLoader
def getResources(x$0: String): Enumeration[URL]

Attributes

Inherited from:
ClassLoader
def getURLs(): Array[URL]

Attributes

Inherited from:
URLClassLoader
def loadClass(x$0: String): Class[_ <: <FromJavaObject>]

Attributes

Inherited from:
ClassLoader
def setClassAssertionStatus(x$0: String, x$1: Boolean): Unit

Attributes

Inherited from:
ClassLoader
def setDefaultAssertionStatus(x$0: Boolean): Unit

Attributes

Inherited from:
ClassLoader
def setPackageAssertionStatus(x$0: String, x$1: Boolean): Unit

Attributes

Inherited from:
ClassLoader

Concrete fields

val newFileDict: Map[String, Array[Byte]]

Files which have been compiled, stored so that our special classloader can get at them.

Files which have been compiled, stored so that our special classloader can get at them.

Attributes

var specialLocalClasses: Set[String]