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

com.github.raduciumag.shapeshift.config.ServerConfigBuilder Maven / Gradle / Ivy

There is a newer version: 0.5.2
Show newest version
package com.github.raduciumag.shapeshift.config;

import com.github.raduciumag.shapeshift.model.server.ServerType;

import java.util.Map;

public abstract class ServerConfigBuilder {

    protected final ServerType type;

    protected ServerConfigBuilder(final ServerType type) {
        this.type = type;
    }

    public boolean canBuild(final ServerType type) {
        if (this.type == null || type == null) {
            return false;
        }

        return this.type == type;
    }

    public abstract C buildConfig(Map rawConfig);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy