From 1b85f22e0a0141a923835856f7c231f93464afaf Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 31 Jan 2012 13:13:11 +0200 Subject: [PATCH] move to elasticsearch 0.19.0 snap and use some of its features --- README.md | 2 +- pom.xml | 2 +- .../org/elasticsearch/plugin/python/PythonPlugin.java | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 481b12f486a..4a9b4e054a3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ In order to install the plugin, simply run: `bin/plugin -install elasticsearch/e --------------------------------------- | Python Plugin | ElasticSearch | --------------------------------------- - | master | 0.18 -> master | + | master | master (0.19) | --------------------------------------- | 1.0.0 | 0.18 -> master | --------------------------------------- diff --git a/pom.xml b/pom.xml index 3e746c442f4..64731c3d141 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ - 0.18.5 + 0.19.0-SNAPSHOT diff --git a/src/main/java/org/elasticsearch/plugin/python/PythonPlugin.java b/src/main/java/org/elasticsearch/plugin/python/PythonPlugin.java index 06ff7d7f784..6a54b8a1236 100644 --- a/src/main/java/org/elasticsearch/plugin/python/PythonPlugin.java +++ b/src/main/java/org/elasticsearch/plugin/python/PythonPlugin.java @@ -19,7 +19,6 @@ package org.elasticsearch.plugin.python; -import org.elasticsearch.common.inject.Module; import org.elasticsearch.plugins.AbstractPlugin; import org.elasticsearch.script.ScriptModule; import org.elasticsearch.script.python.PythonScriptEngineService; @@ -39,10 +38,7 @@ public class PythonPlugin extends AbstractPlugin { return "Python plugin allowing to add javascript scripting support"; } - @Override - public void processModule(Module module) { - if (module instanceof ScriptModule) { - ((ScriptModule) module).addScriptEngine(PythonScriptEngineService.class); - } + public void onModule(ScriptModule module) { + module.addScriptEngine(PythonScriptEngineService.class); } }