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

io.quarkus.vault.runtime.VaultRecorder Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta1
Show newest version
package io.quarkus.vault.runtime;

import org.jboss.logging.Logger;

import io.quarkus.arc.Arc;
import io.quarkus.runtime.annotations.Recorder;
import io.quarkus.vault.runtime.config.VaultBuildTimeConfig;
import io.quarkus.vault.runtime.config.VaultRuntimeConfig;

@Recorder
public class VaultRecorder {

    private static final Logger log = Logger.getLogger(VaultRecorder.class);

    public void configureRuntimeProperties(VaultBuildTimeConfig vaultBuildTimeConfig, VaultRuntimeConfig vaultRuntimeConfig) {

        if (vaultRuntimeConfig.url.isPresent()) {
            VaultServiceProducer producer = Arc.container().instance(VaultServiceProducer.class).get();
            producer.setVaultConfigs(vaultBuildTimeConfig, vaultRuntimeConfig);
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy