change additionalSettings to use Settings
This commit is contained in:
parent
785fb11f2a
commit
9c85500246
|
@ -22,11 +22,11 @@ package org.elasticsearch.plugins;
|
|||
import org.elasticsearch.common.collect.ImmutableList;
|
||||
import org.elasticsearch.common.component.LifecycleComponent;
|
||||
import org.elasticsearch.common.inject.Module;
|
||||
import org.elasticsearch.common.settings.ImmutableSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.CloseableIndexComponent;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* A base class for a plugin.
|
||||
|
@ -81,8 +81,8 @@ public abstract class AbstractPlugin implements Plugin {
|
|||
// nothing to do here
|
||||
}
|
||||
|
||||
@Override public Map<String, String> additionalSettings() {
|
||||
return Collections.emptyMap();
|
||||
@Override public Settings additionalSettings() {
|
||||
return ImmutableSettings.Builder.EMPTY_SETTINGS;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,10 +21,10 @@ package org.elasticsearch.plugins;
|
|||
|
||||
import org.elasticsearch.common.component.LifecycleComponent;
|
||||
import org.elasticsearch.common.inject.Module;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.index.CloseableIndexComponent;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* An extension point allowing to plug in custom functionality.
|
||||
|
@ -78,5 +78,5 @@ public interface Plugin {
|
|||
/**
|
||||
* Additional node settings loaded by the plugin
|
||||
*/
|
||||
Map<String, String> additionalSettings();
|
||||
Settings additionalSettings();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue