io.smallrye.graphql.client.model.ClientModels Maven / Gradle / Ivy
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() +
'}';
}
}