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

com.github.kristofa.brave.AnnotationSubmitterConfig Maven / Gradle / Ivy

package com.github.kristofa.brave;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * Spring dependency injection configuration for {@link AnnotationSubmitter}.
 * 
 * @author kristof
 */
@Configuration
public class AnnotationSubmitterConfig {

    /**
     * Creates a singleton {@link AnnotationSubmitter}.
     * 
     * @return singleton {@link AnnotationSubmitter}.
     */
    @Bean
    @Scope(value = "singleton")
    public AnnotationSubmitter annotationSubmitter() {
        return Brave.getServerSpanAnnotationSubmitter();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy