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

io.smallrye.faulttolerance.propagation.ContextPropagationRequestContextControllerProvider Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
package io.smallrye.faulttolerance.propagation;

import jakarta.enterprise.context.ContextNotActiveException;
import jakarta.enterprise.context.control.RequestContextController;

import io.smallrye.faulttolerance.internal.RequestContextControllerProvider;

public class ContextPropagationRequestContextControllerProvider implements RequestContextControllerProvider {
    private final RequestContextController dummy = new RequestContextController() {
        @Override
        public boolean activate() {
            return false;
        }

        @Override
        public void deactivate() throws ContextNotActiveException {
        }
    };

    @Override
    public RequestContextController get() {
        return dummy;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy