Class GuiceInjectorBootstrap
java.lang.Object
com.peterphi.std.guice.apploader.impl.GuiceInjectorBootstrap
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.inject.Injector
Deprecated.static com.google.inject.Injector
createInjector
(GuiceSetup setup) Deprecated.Creates an Injector by taking a pre-constructed GuiceSetupstatic 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 GuiceRegistrystatic com.google.inject.Injector
createInjector
(PropertyFile configuration, GuiceSetup setup) Deprecated.Creates an Injector by taking a preloaded service.properties and a pre-constructed GuiceSetup
-
Constructor Details
-
GuiceInjectorBootstrap
public GuiceInjectorBootstrap()Deprecated.
-
-
Method Details
-
createInjector
public static com.google.inject.Injector createInjector()Deprecated. -
createInjector
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
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:
-