object ModuleInitializer

Factory for ModuleInitializers.

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

Type Members

  1. abstract class Initializer extends AnyRef

Value Members

  1. def fingerprint(moduleInitializer: ModuleInitializer): String
  2. def mainMethod(className: String, mainMethodName: String): ModuleInitializer

    Makes a ModuleInitializer that calls a static zero-argument method returning Unit in a top-level class.

    Makes a ModuleInitializer that calls a static zero-argument method returning Unit in a top-level class.

    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".

  3. def mainMethodWithArgs(className: String, mainMethodName: String, args: List[String]): ModuleInitializer

    Makes a ModuleInitializer that calls a static method of a top-level class taking an Array[String] and returning Unit.

    Makes a ModuleInitializer that calls a static method of a top-level class taking an Array[String] and returning Unit.

    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.

  4. def mainMethodWithArgs(className: String, mainMethodName: String): ModuleInitializer

    Makes a ModuleInitializer that calls a static method of a top-level class taking an Array[String] and returning Unit.

    Makes a ModuleInitializer that calls a static method of a top-level class taking an Array[String] and returning Unit.

    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".