Search in sources :

Example 6 with Qualifier

use of org.springframework.beans.factory.annotation.Qualifier in project pinpoint by naver.

the class HbaseTraceDaoV2 method setSpanMapperV2.

@Autowired
@Qualifier("spanMapperV2")
public void setSpanMapperV2(RowMapper<List<SpanBo>> spanMapperV2) {
    final Logger logger = LoggerFactory.getLogger(spanMapperV2.getClass());
    if (logger.isDebugEnabled()) {
        spanMapperV2 = CellTraceMapper.wrap(spanMapperV2);
    }
    this.spanMapperV2 = spanMapperV2;
}
Also used : Logger(org.slf4j.Logger) Autowired(org.springframework.beans.factory.annotation.Autowired) Qualifier(org.springframework.beans.factory.annotation.Qualifier)

Aggregations

Qualifier (org.springframework.beans.factory.annotation.Qualifier)6 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)3 Bean (org.springframework.context.annotation.Bean)3 Logger (org.slf4j.Logger)2 Autowired (org.springframework.beans.factory.annotation.Autowired)2 ThreadPoolTaskScheduler (org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler)2 BraveExecutorService (com.github.kristofa.brave.BraveExecutorService)1 BraveTracingInterceptor (com.github.kristofa.brave.okhttp.BraveTracingInterceptor)1 AnnotatedElement (java.lang.reflect.AnnotatedElement)1 Dispatcher (okhttp3.Dispatcher)1 Interceptor (okhttp3.Interceptor)1 OkHttpClient (okhttp3.OkHttpClient)1 ConditionalOnBean (org.springframework.boot.autoconfigure.condition.ConditionalOnBean)1