Packages

object ScalaInstance

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaInstance
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type InstanceId = (String, String, String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(scalaOrg: String, scalaName: String, scalaVersion: String, allJars: Seq[AbsolutePath], logger: Logger): ScalaInstance

    Reuses all jars to create an Scala instance if and only if all of them exist.

    Reuses all jars to create an Scala instance if and only if all of them exist.

    This is done mainly by performance reasons, since dependency resolution is not in the scope of what bloop is supposed to do. All resolution should be done by the user.

    When this is not the case, we resolve the Scala jars from coursier. This is good because it means that if for some reason the scala jars do not exist, the user will get no matter what get the right instance. If the jars don't exist and they cannot be resolved, users will get a resolution error instead of a weird compilation error when compilation via Zinc starts.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getVersion(loader: ClassLoader): String
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def resolve(scalaOrg: String, scalaName: String, scalaVersion: String, logger: Logger): ScalaInstance
  18. def scalaInstanceFromBloop(logger: Logger): Option[ScalaInstance]

    Returns the default scala instance that is used in bloop's classloader.

    Returns the default scala instance that is used in bloop's classloader.

    A Scala instance is always required to compile with Zinc. As a result, Java projects that have no Scala configuration and want to be able to re-use Zinc's Javac infrastructure for incremental compilation need to have a dummy Scala instance available.

    This method is responsible for creating this dummy Scala instance. The instance is fully functional and the jars for the instance come from Bloop class loader which depends on all the Scala jars. Here we get the jars that are usually used in scala jars from the protected domain of every class.

    This could not work in case a user has set a strict security manager in the environment in which Bloop is running at. However, this is unlikely because Bloop will run on different machines that normal production-ready machines. In these machines, security managers don't usually exist and if they do don't happen to be so strict as to prevent getting the location from the protected domain.

  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped