All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.elastic.sailor.ServiceModule Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package io.elastic.sailor;

import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.name.Named;
import io.elastic.api.JSON;

import javax.json.JsonObject;


public class ServiceModule extends AbstractModule {

    @Override
    protected void configure() {
    }

    @Provides
    @Named(Constants.NAME_CFG_JSON)
    JsonObject provideConfiguration(
            @Named(Constants.ENV_VAR_CFG) String cfg) {

        return JSON.parseObject(cfg);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy