Class GuiceInjectorBootstrap

java.lang.Object
com.peterphi.std.guice.apploader.impl.GuiceInjectorBootstrap

@Deprecated public class GuiceInjectorBootstrap extends Object
Deprecated.
use GuiceBuilder directly instead. This class will be removed in a future release.
Responsible for creating fresh Injector instances. This is handled by reading service.properties and parsing the GuiceProperties.SETUP_PROPERTY property which should point at a GuiceSetup implementation.
  • Constructor Details

    • GuiceInjectorBootstrap

      public GuiceInjectorBootstrap()
      Deprecated.
  • Method Details

    • createInjector

      public static com.google.inject.Injector createInjector()
      Deprecated.
    • createInjector

      public static com.google.inject.Injector createInjector(PropertyFile properties)
      Deprecated.
      Create an Injector by loading service.properties and then reading the guice.bootstrap.class from it
      This is the entrypoint for the GuiceRegistry
      Returns:
    • createInjector

      public static com.google.inject.Injector createInjector(GuiceSetup setup)
      Deprecated.
      Creates an Injector by taking a pre-constructed GuiceSetup
      Parameters:
      setup -
      Returns:
    • createInjector

      public static com.google.inject.Injector createInjector(PropertyFile configuration, GuiceSetup setup)
      Deprecated.
      Creates an Injector by taking a preloaded service.properties and a pre-constructed GuiceSetup
      Parameters:
      properties -
      setup -
      Returns: