change additionalSettings to use Settings

This commit is contained in:
kimchy 2011-04-16 01:20:27 +03:00
parent 785fb11f2a
commit 9c85500246
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}
}

View File

@ -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();
}