object ScalaInstance
- Alphabetic
- By Inheritance
- ScalaInstance
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type InstanceId = (String, String, String)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getVersion(loader: ClassLoader): String
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def resolve(scalaOrg: String, scalaName: String, scalaVersion: String, logger: Logger): ScalaInstance
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )