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

restx.mongo.MongoSettingsConfig Maven / Gradle / Ivy

The newest version!
package restx.mongo;

import restx.common.RestxConfig;
import restx.factory.Component;

@Component
public class MongoSettingsConfig implements restx.mongo.MongoSettings {
    private final RestxConfig config;

    public MongoSettingsConfig(RestxConfig config) {
        this.config = config;
    }

    @Override
    public java.lang.String dbName() {
        return config.getString("mongo.db").get();
    }

    @Override
    public java.lang.String uri() {
        return config.getString("mongo.uri").get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy