Class SettingsModule

  • All Implemented Interfaces:

    public class SettingsModule
    extends java.lang.Object
    implements Module
    A module that binds the provided settings to the Settings interface.
    • Constructor Detail

      • SettingsModule

        public SettingsModule​(Settings settings,
                              Setting<?>... additionalSettings)
      • SettingsModule

        public SettingsModule​(Settings settings,
                              java.util.List<Setting<?>> additionalSettings,
                              java.util.List<java.lang.String> settingsFilter,
                              java.util.Set<SettingUpgrader<?>> settingUpgraders)
    • Method Detail

      • configure

        public void configure​(Binder binder)
        Description copied from interface: Module
        Contributes bindings and other configurations for this module to binder.

        Do not invoke this method directly to install submodules. Instead use Binder.install(Module), which ensures that provider methods are discovered.

        Specified by:
        configure in interface Module
      • getSettings

        public Settings getSettings()
      • getConsistentSettings

        public java.util.Set<Setting<?>> getConsistentSettings()