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

io.quarkus.smallrye.context.runtime.SmallRyeContextPropagationProvider Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.smallrye.context.runtime;

import jakarta.enterprise.context.Dependent;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;

import org.eclipse.microprofile.context.ThreadContext;

import io.quarkus.arc.DefaultBean;
import io.smallrye.context.SmallRyeThreadContext;

@Dependent
public class SmallRyeContextPropagationProvider {

    @Produces
    @Singleton
    @DefaultBean
    public SmallRyeThreadContext getAllThreadContext() {
        // Make sure we use the default values, which use the MP Config keys to allow users to override them
        return (SmallRyeThreadContext) ThreadContext.builder()
                .build();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy