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

com.quorum.tessera.cli.CliDelegate Maven / Gradle / Ivy

Go to download

Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.

There is a newer version: 24.4.2
Show newest version
package com.quorum.tessera.cli;

import com.quorum.tessera.config.Config;

import java.util.Optional;

// TODO(cjh) still using CliDelegate as a config store so that config can be injected by spring
public enum CliDelegate {
    INSTANCE;

    private Config config;

    public static CliDelegate instance() {
        return INSTANCE;
    }

    public Config getConfig() {
        return Optional.ofNullable(config)
                .orElseThrow(
                        () -> new IllegalStateException("Execute must be invoked before attempting to fetch config"));
    }

    public void setConfig(Config config) {
        this.config = config;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy