Interface AutoDisablingScriptStrategy
-
- All Known Implementing Classes:
DefaultAutoDisablingScriptStrategy
public interface AutoDisablingScriptStrategyThis interface is a strategy which can be passed to theScriptingLanguagesServicewhen obtainingScriptExecutableto enable auto-disabling scripts on failure.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisDisabled(ScriptExecutable executable)Checks whether givenScriptExecutableis disabled.voidonException(java.lang.Exception exception, ScriptExecutable executable, java.util.Map<java.lang.String,java.lang.Object> scriptContext)This method reacts on Exception thrown fromScriptExecutable.
-
-
-
Method Detail
-
onException
void onException(java.lang.Exception exception, ScriptExecutable executable, java.util.Map<java.lang.String,java.lang.Object> scriptContext)This method reacts on Exception thrown fromScriptExecutable.
-
isDisabled
boolean isDisabled(ScriptExecutable executable)
Checks whether givenScriptExecutableis disabled.
-
-