Package com.peterphi.std.guice.apploader
Class BasicSetup
java.lang.Object
com.peterphi.std.guice.apploader.BasicSetup
- All Implemented Interfaces:
GuiceSetup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
injectorCreated
(com.google.inject.Injector injector) Allows any post-creation actions to be takenvoid
registerModules
(List<com.google.inject.Module> modules, GuiceConfig config) Request for the Setup implementation to add its required modules
-
Constructor Details
-
BasicSetup
public BasicSetup() -
BasicSetup
public BasicSetup(com.google.inject.Module... modules)
-
-
Method Details
-
registerModules
Description copied from interface:GuiceSetup
Request for the Setup implementation to add its required modules- Specified by:
registerModules
in interfaceGuiceSetup
- Parameters:
modules
- the mutable list of modules which will be used to create a new Injectorconfig
- the service.properties configuration data
-
injectorCreated
public void injectorCreated(com.google.inject.Injector injector) Description copied from interface:GuiceSetup
Allows any post-creation actions to be taken- Specified by:
injectorCreated
in interfaceGuiceSetup
-