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 DimmerLocalRunner defaultEnvironment() {
                return DimmerLocalRunner.withDefaultEnvironment();
            }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy