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

org.renci.nodeagent2.oscarslib.driver.ClientConfigHolder Maven / Gradle / Ivy

package org.renci.nodeagent2.oscarslib.driver;

import java.util.HashMap;

public class ClientConfigHolder {
    private ClientConfigHolder() {

    }
    private static ClientConfigHolder instance = null;
    public static ClientConfigHolder getInstance() {
        if (instance == null) {
            instance = new ClientConfigHolder();
        }
        return instance;
    }

    private HashMap clientConfigs = new HashMap();
    private ClientConfig activeClientConfig;

    public ClientConfig getActiveClientConfig() {
        return activeClientConfig;
    }

    public void addClientConfig(String url, ClientConfig cc) {
        clientConfigs.put(url, cc);
    }

    public void setActiveClientConfig(String url) {
        activeClientConfig = clientConfigs.get(url);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy