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

io.quarkiverse.argocd.cli.handlers.GetArgoCDApplicationHandler Maven / Gradle / Ivy

package io.quarkiverse.argocd.cli.handlers;

import java.util.function.BiConsumer;
import java.util.function.Consumer;

import io.quarkiverse.argocd.spi.ArgoCDResourceListBuildItem;
import io.quarkiverse.argocd.v1alpha1.ArgoCDResourceList;
import io.quarkus.builder.BuildResult;

public class GetArgoCDApplicationHandler implements BiConsumer {

    @Override
    public void accept(Object context, BuildResult buildResult) {
        ArgoCDResourceListBuildItem resourceListBuildItem = buildResult.consume(ArgoCDResourceListBuildItem.class);
        Consumer consumer = (Consumer) context;
        consumer.accept(resourceListBuildItem.getResourceList());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy