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

com.github.charlemaznable.vertx.config.VertxOptionsConfigElf Maven / Gradle / Ivy

There is a newer version: 2022.0.2
Show newest version
package com.github.charlemaznable.vertx.config;

import com.ctrip.framework.apollo.ConfigService;
import lombok.NoArgsConstructor;
import org.n3r.diamond.client.Miner;

import static lombok.AccessLevel.PRIVATE;

@NoArgsConstructor(access = PRIVATE)
public final class VertxOptionsConfigElf {

    public static final String VERTX_OPTIONS_APOLLO_NAMESPACE = "VertxOptions";
    public static final String VERTX_OPTIONS_DIAMOND_GROUP_NAME = "VertxOptions";

    public static String getApolloProperty(String propertyName) {
        return ConfigService.getConfig(VERTX_OPTIONS_APOLLO_NAMESPACE)
                .getProperty(propertyName, "");
    }

    public static String getDiamondStone(String dataId) {
        return new Miner().getStone(VERTX_OPTIONS_DIAMOND_GROUP_NAME, dataId);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy