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

io.smallrye.faulttolerance.internal.RequestContextControllerProvider Maven / Gradle / Ivy

There is a newer version: 6.6.2
Show newest version
package io.smallrye.faulttolerance.internal;

import java.util.ServiceLoader;

import javax.enterprise.context.control.RequestContextController;

/**
 * This is not a public SPI, it's only meant to be used internally.
 */
public interface RequestContextControllerProvider {
    RequestContextController get();

    static RequestContextControllerProvider load() {
        for (RequestContextControllerProvider found : ServiceLoader.load(RequestContextControllerProvider.class)) {
            return found;
        }
        return new DefaultRequestContextControllerProvider();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy