Class BasicSetup

java.lang.Object
com.peterphi.std.guice.apploader.BasicSetup
All Implemented Interfaces:
GuiceSetup

public class BasicSetup extends Object implements GuiceSetup
  • Constructor Details

    • BasicSetup

      public BasicSetup()
    • BasicSetup

      public BasicSetup(com.google.inject.Module... modules)
  • Method Details

    • registerModules

      public void registerModules(List<com.google.inject.Module> modules, GuiceConfig config)
      Description copied from interface: GuiceSetup
      Request for the Setup implementation to add its required modules
      Specified by:
      registerModules in interface GuiceSetup
      Parameters:
      modules - the mutable list of modules which will be used to create a new Injector
      config - 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 interface GuiceSetup