Merge pull request elastic/elasticsearch#2251 from dakrone/only-one-extension
Fix compilation for only one script language extension Original commit: elastic/x-pack-elasticsearch@925974fa50
This commit is contained in:
commit
31d84f6d27
|
@ -41,8 +41,8 @@ public class MockMustacheScriptEngine extends MockScriptEngine {
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<String> getExtensions() {
|
||||
return Collections.singletonList(NAME);
|
||||
public String getExtension() {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -22,8 +22,6 @@ public class SleepScriptEngine implements ScriptEngineService {
|
|||
|
||||
public static final String NAME = "sleep";
|
||||
|
||||
public static final List<String> TYPES = Collections.singletonList(NAME);
|
||||
|
||||
public static class TestPlugin extends Plugin {
|
||||
|
||||
public TestPlugin() {
|
||||
|
@ -52,8 +50,8 @@ public class SleepScriptEngine implements ScriptEngineService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<String> getExtensions() {
|
||||
return TYPES;
|
||||
public String getExtension() {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue