Package com.peterphi.std.guice.apploader
Interface GuiceSetup
- All Known Implementing Classes:
AbstractRESTGuiceSetup,BasicSetup,UserManagerSetup
public interface GuiceSetup
Bootstrap interface, replaces static *Loader types
Implementors MUST expose a public default constructor.
Instances of this interface are short-lived and created every time the GuiceBuilder needs to construct a new Injector
Implementors MUST expose a public default constructor.
Instances of this interface are short-lived and created every time the GuiceBuilder needs to construct a new Injector
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidinjectorCreated(com.google.inject.Injector injector) Allows any post-creation actions to be takenvoidregisterModules(List<com.google.inject.Module> modules, GuiceConfig config) Request for the Setup implementation to add its required modules
-
Method Details
-
registerModules
Request for the Setup implementation to add its required modules- Parameters:
modules- the mutable list of modules which will be used to create a new Injectorconfig- the service.properties configuration data
-
injectorCreated
void injectorCreated(com.google.inject.Injector injector) Allows any post-creation actions to be taken- Parameters:
injector-
-