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

com.quorum.tessera.enclave.EnclaveClientFactory Maven / Gradle / Ivy

package com.quorum.tessera.enclave;

import com.quorum.tessera.ServiceLoaderUtil;
import com.quorum.tessera.config.Config;

/**
 * Creates clients which connect to remote instances of an enclave.
 *
 * @param  the type of remote enclave to create a client for
 */
public interface EnclaveClientFactory {

    T create(Config config);

    static EnclaveClientFactory create() {
        // TODO: return the stream and let the caller deal with it
        return ServiceLoaderUtil.loadAll(EnclaveClientFactory.class).findAny().get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy