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

com.icthh.xm.commons.config.client.service.CommonConfigService Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package com.icthh.xm.commons.config.client.service;

import com.icthh.xm.commons.config.client.api.AbstractConfigService;
import com.icthh.xm.commons.config.client.repository.CommonConfigRepository;
import com.icthh.xm.commons.config.domain.Configuration;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.Collection;
import java.util.Map;

@Slf4j
@RequiredArgsConstructor
public class CommonConfigService extends AbstractConfigService {

    private final CommonConfigRepository commonConfigRepository;

    @Override
    public Map getConfigurationMap(String commit) {
        return commonConfigRepository.getConfig(commit);
    }

    @Override
    public Map getConfigurationMap(String commit, Collection paths) {
        return commonConfigRepository.getConfig(commit, paths);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy