Class DefaultSwitchService

java.lang.Object
de.hybris.platform.ruleengineservices.configuration.impl.DefaultSwitchService
All Implemented Interfaces:
SwitchService
Direct Known Subclasses:
PromotionEngineTestSupportSwitchService

public class DefaultSwitchService extends Object implements SwitchService
Default implementation of SwitchService
  • Constructor Details

    • DefaultSwitchService

      public DefaultSwitchService()
  • Method Details

    • 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 Map<Switch,Boolean> getStatuses()
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)