Skip to content

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 #29.

(cherry picked from commit 1fd05bc)
  • Loading branch information
dadoonet committed Oct 15, 2014
1 parent bf40ca6 commit 1950ad9
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -25,10 +25,7 @@
import org.elasticsearch.common.component.AbstractComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.script.ExecutableScript;
import org.elasticsearch.script.ScoreAccessor;
import org.elasticsearch.script.ScriptEngineService;
import org.elasticsearch.script.SearchScript;
import org.elasticsearch.script.*;
import org.elasticsearch.script.javascript.support.NativeList;
import org.elasticsearch.script.javascript.support.NativeMap;
import org.elasticsearch.script.javascript.support.ScriptValueConverter;
Expand Down Expand Up @@ -72,6 +69,11 @@ public void close() {

}

@Override
public void scriptRemoved(@Nullable CompiledScript compiledScript) {
// Nothing to do here
}

@Override
public String[] types() {
return new String[]{"js", "javascript"};
Expand Down

0 comments on commit 1950ad9

Please sign in to comment.