Class Main

java.lang.Object
org.eclipse.sisu.launch.Main
All Implemented Interfaces:
com.google.inject.Module

public final class Main extends Object implements com.google.inject.Module
Bootstrap class that creates a static Injector by scanning the current class-path for beans.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String[]
     
    private final Map<?,?>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Main(Map<?,?> properties, String... args)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    boot(Class<T> type, String... args)
     
    static <T> T
    boot(Class<T> type, String[] args, com.google.inject.Module... bindings)
     
    static com.google.inject.Injector
    boot(Map<?,?> properties, String... args)
     
    static com.google.inject.Injector
    boot(Map<?,?> properties, String[] args, com.google.inject.Module... bindings)
     
    void
    configure(com.google.inject.Binder binder)
     
    static void
    main(String... args)
     
    (package private) String[]
     
    static com.google.inject.Module
    wire(BeanScanning scanning, com.google.inject.Module... bindings)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • properties

      private final Map<?,?> properties
    • args

      private final String[] args
  • Constructor Details

    • Main

      private Main(Map<?,?> properties, String... args)
  • Method Details

    • main

      public static void main(String... args)
    • boot

      public static <T> T boot(Class<T> type, String... args)
    • boot

      public static <T> T boot(Class<T> type, String[] args, com.google.inject.Module... bindings)
    • boot

      public static com.google.inject.Injector boot(Map<?,?> properties, String... args)
    • boot

      public static com.google.inject.Injector boot(Map<?,?> properties, String[] args, com.google.inject.Module... bindings)
    • wire

      public static com.google.inject.Module wire(BeanScanning scanning, com.google.inject.Module... bindings)
    • configure

      public void configure(com.google.inject.Binder binder)
      Specified by:
      configure in interface com.google.inject.Module
    • parameters

      @Provides @Parameters String[] parameters()