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

com.github.cloudyrock.dimmer.DimmerBuilder Maven / Gradle / Ivy

package com.github.cloudyrock.dimmer;

import java.util.HashMap;

import static java.util.Arrays.asList;

public class DimmerBuilder {

    public static DimmerDefaultEnvironmentConfigurable local() {

        return new DimmerDefaultEnvironmentConfigurable() {
            @Override
            public FeatureLocalBuilder defaultEnvironment() {
                return FeatureLocalBuilder.withDefaultEnvironment();
            }

            @Override
            public FeatureLocalBuilder environments(String... environments) {
                return FeatureLocalBuilder
                        .withEnvironmentsAndMetadata(asList(environments), new HashMap<>());
            }
        };
    }

    public static FeatureRemoteBuilder remote(String url) {
        return new FeatureRemoteBuilder(url);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy