object ModuleInitializer
Factory for ModuleInitializers.
- Alphabetic
- By Inheritance
- ModuleInitializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class Initializer extends AnyRef
Value Members
- def fingerprint(moduleInitializer: ModuleInitializer): String
- def mainMethod(className: String, mainMethodName: String): ModuleInitializer
Makes a ModuleInitializer that calls a static zero-argument method returning
Unit
in a top-levelclass
.Makes a ModuleInitializer that calls a static zero-argument method returning
Unit
in a top-levelclass
.- className
The fully-qualified name of the class, e.g.,
"foo.bar.Babar"
.- mainMethodName
The name of the main method to invoke, e.g.,
"main"
.
- def mainMethodWithArgs(className: String, mainMethodName: String, args: List[String]): ModuleInitializer
Makes a ModuleInitializer that calls a static method of a top-level
class
taking anArray[String]
and returningUnit
.Makes a ModuleInitializer that calls a static method of a top-level
class
taking anArray[String]
and returningUnit
.An array containing the specified
args
is passed as argument.- className
The fully-qualified name of the class, e.g.,
"foo.bar.Babar"
.- mainMethodName
The name of the main method to invoke, e.g.,
"main"
.- args
The arguments to pass as an array.
- def mainMethodWithArgs(className: String, mainMethodName: String): ModuleInitializer
Makes a ModuleInitializer that calls a static method of a top-level
class
taking anArray[String]
and returningUnit
.Makes a ModuleInitializer that calls a static method of a top-level
class
taking anArray[String]
and returningUnit
.An empty array is passed as argument.
- className
The fully-qualified name of the class, e.g.,
"foo.bar.Babar"
.- mainMethodName
The name of the main method to invoke, e.g.,
"main"
.