Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Implement new method scriptRemoved(CompiledScript) in `ScriptEngine…
Browse files Browse the repository at this point in the history
…Service`

This [PR](elastic/elasticsearch#8062) broke ScriptEngineService by adding a new method `scriptRemoved(CompiledScript)`.

Closes #6.

(cherry picked from commit 3985cec)
  • Loading branch information
dadoonet committed Oct 15, 2014
1 parent 25fe322 commit bed4e50
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.math.UnboxedMathUtils;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.script.CompiledScript;
import org.elasticsearch.script.ExecutableScript;
import org.elasticsearch.script.ScriptEngineService;
import org.elasticsearch.script.SearchScript;
Expand Down Expand Up @@ -111,6 +112,11 @@ public void close() {
//To change body of implemented methods use File | Settings | File Templates.
}

@Override
public void scriptRemoved(@Nullable CompiledScript compiledScript) {

}

public static class MvelExecutableScript implements ExecutableScript {

private final ExecutableStatement script;
Expand Down

0 comments on commit bed4e50

Please sign in to comment.