Dotty Documentation

0.11.0-bin-SNAPSHOT

object Plugin
extends Object

[-] Constructors

[-] Members

[+] type AnyClass = Class [ Nothing <: Any ]
[+] private val PluginFile : String
[+] def instantiate ( clazz: AnyClass ) : Plugin

Instantiate a plugin class, given the class and the compiler it is to be used in.

[+] def load ( classname: String , loader: ClassLoader ) : Try [ AnyClass ]

Use a class loader to load the plugin class.

[+] def loadAllFrom ( paths: List [ List [ Path ] ] , dirs: List [ Path ] , ignoring: List [ String ] ) : List [ Try [ Plugin ] ]

Load all plugins specified by the arguments. Each location of paths must be a valid plugin archive or exploded archive. Each of paths must define one plugin. Each of dirs may be a directory containing arbitrary plugin archives. Skips all plugins named in ignoring. A classloader is created to load each plugin.

[+] private def loaderFor ( locations: Seq [ Path ] ) : ClassLoader

Create a class loader with the specified locations plus the loader that loaded the Scala compiler.