case class InProcess(classpath: Array[AbsolutePath]) extends ProcessConfig with Product with Serializable
Configuration to execute Java code without starting a new JVM.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- InProcess
- Serializable
- Serializable
- Product
- Equals
- ProcessConfig
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new InProcess(classpath: Array[AbsolutePath])
Value Members
-
val
classpath: Array[AbsolutePath]
- Definition Classes
- InProcess → ProcessConfig
-
def
runMain(className: String, args: Array[String], logger: Logger, extraClasspath: Array[AbsolutePath] = Array.empty): Int
Run the main function in class
className
, passing itargs
.Run the main function in class
className
, passing itargs
.- className
The fully qualified name of the class to run.
- args
The arguments to pass to the main method.
- logger
Where to log the messages from execution.
- extraClasspath
Paths to append to the classpath before running.
- returns
0 if the execution exited successfully, a non-zero number otherwise.
- Definition Classes
- InProcess → ProcessConfig
-
final
def
toExecutionClassLoader(parent: Option[ClassLoader]): ClassLoader
Creates a
ClassLoader
from the classpath of thisProcessConfig
.Creates a
ClassLoader
from the classpath of thisProcessConfig
.- parent
A parent classloader
- returns
A classloader constructed from the classpath of this
ProcessConfig
.
- Definition Classes
- ProcessConfig