Expose plugin name in a public constant
closes elastic/elasticsearch#27 Original commit: elastic/x-pack-elasticsearch@3410ca2e3d
This commit is contained in:
parent
4ba17be1e6
commit
be26fd7c49
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue