From be26fd7c49d44448095605440db9c47dcf73fdde Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Thu, 27 Nov 2014 17:52:42 -0500 Subject: [PATCH] Expose plugin name in a public constant closes elastic/elasticsearch#27 Original commit: elastic/x-pack-elasticsearch@3410ca2e3d87463295f88a5718a0a2f5cb55ec8c --- .../java/org/elasticsearch/license/plugin/LicensePlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/elasticsearch/license/plugin/LicensePlugin.java b/plugin/src/main/java/org/elasticsearch/license/plugin/LicensePlugin.java index 8a0838e522f..6e1a5805f8b 100644 --- a/plugin/src/main/java/org/elasticsearch/license/plugin/LicensePlugin.java +++ b/plugin/src/main/java/org/elasticsearch/license/plugin/LicensePlugin.java @@ -33,6 +33,7 @@ import java.util.Collection; public class LicensePlugin extends AbstractPlugin { + public static final String NAME = "license"; private final boolean isEnabled; static { @@ -51,7 +52,7 @@ public class LicensePlugin extends AbstractPlugin { @Override public String name() { - return "license"; + return NAME; } @Override