Class DefaultSwitchService

    • Constructor Detail

      • DefaultSwitchService

        public DefaultSwitchService()
    • Method Detail

      • isEnabled

        public boolean isEnabled​(Switch switchOption)
        Description copied from interface: SwitchService
        Identifies whether provided switchable option is enabled
        Specified by:
        isEnabled in interface SwitchService
        Parameters:
        switchOption - one of the Switch values
        Returns:
        true if option is enabled, false - otherwise
      • populateSwitchStatuses

        @PostConstruct
        protected void populateSwitchStatuses()
      • getStatuses

        protected java.util.Map<Switch,​java.lang.Boolean> getStatuses()
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)