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

io.quarkiverse.operatorsdk.deployment.ConfigurationServiceBuildItem Maven / Gradle / Ivy

There is a newer version: 6.8.4
Show newest version
package io.quarkiverse.operatorsdk.deployment;

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

import io.quarkiverse.operatorsdk.runtime.QuarkusControllerConfiguration;
import io.quarkiverse.operatorsdk.runtime.Version;
import io.quarkus.builder.item.SimpleBuildItem;

@SuppressWarnings("rawtypes")
public final class ConfigurationServiceBuildItem extends SimpleBuildItem {

    private final Version version;
    private final Map controllerConfigs;

    public ConfigurationServiceBuildItem(Version version, List controllerConfigs) {
        this.version = version;
        this.controllerConfigs = new HashMap<>(controllerConfigs.size());

        controllerConfigs.forEach(c -> this.controllerConfigs.put(c.getName(), c));
    }

    public Version getVersion() {
        return version;
    }

    public Map getControllerConfigs() {
        return controllerConfigs;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy