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

io.smallrye.graphql.client.model.ClientModels Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
package io.smallrye.graphql.client.model;

import java.util.HashMap;
import java.util.Map;

/**
 * Represents an object for all `ClientModel` (based on their configuration keys)
 * instances within Quarkus application.
 *
 * @author mskacelik
 */

public class ClientModels {
    private Map clientModelMap;

    public ClientModel getClientModelByConfigKey(String configKey) {
        return clientModelMap.get(configKey);
    }

    public ClientModels() {
        clientModelMap = new HashMap<>();
    }

    // bytecode recording
    public void setClientModelMap(Map clientModelMap) {
        this.clientModelMap = clientModelMap;
    }

    public Map getClientModelMap() {
        return clientModelMap;
    }

    // for testing purposes...
    @Override
    public String toString() {
        return "ClientModels{" +
                "operationMap=" + clientModelMap.toString() +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy