com.github.euler.elasticsearch.ElasticsearchContextClientConfigConverter Maven / Gradle / Ivy
package com.github.euler.elasticsearch;
import org.elasticsearch.client.RestHighLevelClient;
import com.github.euler.configuration.ConfigContext;
import com.github.euler.configuration.TypesConfigConverter;
import com.typesafe.config.Config;
public class ElasticsearchContextClientConfigConverter extends AbstractElasticsearchClientConfigConverter {
@Override
public String configType() {
return "context";
}
@Override
public RestHighLevelClient convert(Config config, ConfigContext configContext, TypesConfigConverter typeConfigConverter) {
return configContext.getRequired(RestHighLevelClient.class);
}
}