diff options
author | Ryan Ernst <ryan@iernst.net> | 2016-06-15 15:13:25 -0700 |
---|---|---|
committer | Ryan Ernst <ryan@iernst.net> | 2016-06-15 17:12:22 -0700 |
commit | a4503c2aed8f319ce85e07b7fa9848e523713ebc (patch) | |
tree | 68b4decb134a5b1c10ba38823d577d5c1208dd6d /plugins/ingest-attachment | |
parent | 7f6e0c6c0203fd67713ae0bc6dbbc20a18817df7 (diff) |
Plugins: Remove name() and description() from api
In 2.0 we added plugin descriptors which require defining a name and
description for the plugin. However, we still have name() and
description() which must be overriden from the Plugin class. This still
exists for classpath plugins. But classpath plugins are mainly for
tests, and even then, referring to classpath plugins with their class is
a better idea. This change removes name() and description(), replacing
the name for classpath plugins with the full class name.
Diffstat (limited to 'plugins/ingest-attachment')
-rw-r--r-- | plugins/ingest-attachment/src/main/java/org/elasticsearch/ingest/attachment/IngestAttachmentPlugin.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/ingest-attachment/src/main/java/org/elasticsearch/ingest/attachment/IngestAttachmentPlugin.java b/plugins/ingest-attachment/src/main/java/org/elasticsearch/ingest/attachment/IngestAttachmentPlugin.java index 6e0b3e9e1b..3156fe381f 100644 --- a/plugins/ingest-attachment/src/main/java/org/elasticsearch/ingest/attachment/IngestAttachmentPlugin.java +++ b/plugins/ingest-attachment/src/main/java/org/elasticsearch/ingest/attachment/IngestAttachmentPlugin.java @@ -26,16 +26,6 @@ import java.io.IOException; public class IngestAttachmentPlugin extends Plugin { - @Override - public String name() { - return "ingest-attachment"; - } - - @Override - public String description() { - return "Ingest processor that adds uses Tika to extract binary data"; - } - public void onModule(NodeModule nodeModule) throws IOException { nodeModule.registerProcessor(AttachmentProcessor.TYPE, (registry) -> new AttachmentProcessor.Factory()); |