Class DefaultSwitchService
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.configuration.impl.DefaultSwitchService
-
- All Implemented Interfaces:
SwitchService
- Direct Known Subclasses:
PromotionEngineTestSupportSwitchService
public class DefaultSwitchService extends java.lang.Object implements SwitchService
Default implementation ofSwitchService
-
-
Constructor Summary
Constructors Constructor Description DefaultSwitchService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurationServicegetConfigurationService()protected java.util.Map<Switch,java.lang.Boolean>getStatuses()booleanisEnabled(Switch switchOption)Identifies whether provided switchable option is enabledprotected voidpopulateSwitchStatuses()voidsetConfigurationService(ConfigurationService configurationService)
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled(Switch switchOption)
Description copied from interface:SwitchServiceIdentifies whether provided switchable option is enabled- Specified by:
isEnabledin interfaceSwitchService- Parameters:
switchOption- one of theSwitchvalues- Returns:
trueif option is enabled,false- otherwise
-
populateSwitchStatuses
@PostConstruct protected void populateSwitchStatuses()
-
getStatuses
protected java.util.Map<Switch,java.lang.Boolean> getStatuses()
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
-