Class DoNotExecuteWhenDisabledStrategy
java.lang.Object
de.hybris.platform.scripting.engine.impl.DoNotExecuteWhenDisabledStrategy
- All Implemented Interfaces:
AutoDisablingScriptStrategy
- Direct Known Subclasses:
DefaultAutoDisablingScriptStrategy
This strategy is only used for model based scripts and throws an exception when an underlying
ScriptModel is disabled.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServiceprotected ScriptModelbooleanisDisabled(ScriptExecutable executable) Checks whether givenScriptExecutableis disabled.voidonException(Exception exception, ScriptExecutable executable, Map<String, Object> scriptContext) This method reacts on Exception thrown fromScriptExecutable.
-
Constructor Details
-
DoNotExecuteWhenDisabledStrategy
-
-
Method Details
-
onException
public void onException(Exception exception, ScriptExecutable executable, Map<String, Object> scriptContext) Description copied from interface:AutoDisablingScriptStrategyThis method reacts on Exception thrown fromScriptExecutable.- Specified by:
onExceptionin interfaceAutoDisablingScriptStrategy
-
isDisabled
Description copied from interface:AutoDisablingScriptStrategyChecks whether givenScriptExecutableis disabled.- Specified by:
isDisabledin interfaceAutoDisablingScriptStrategy
-
getScriptModel
-
getModelService
-