use of org.springframework.beans.factory.annotation.Qualifier in project wombat by PLOS.
the class SpringConfiguration method searchFilterTypeMap.
@Bean
@Qualifier("searchFilters")
public Map<String, SearchFilterType> searchFilterTypeMap(JournalFilterType journalFilterType) {
ImmutableMap.Builder<String, SearchFilterType> builder = ImmutableMap.builder();
builder.put("journal", journalFilterType);
for (SingletonSearchFilterType value : SingletonSearchFilterType.values()) {
builder.put(value.name().toLowerCase(), value);
}
return builder.build();
}
use of org.springframework.beans.factory.annotation.Qualifier in project spring-boot-admin by codecentric.
the class SpringBootAdminClientAutoConfiguration method registrationTaskScheduler.
@Bean
@Qualifier("registrationTaskScheduler")
public TaskScheduler registrationTaskScheduler() {
ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
taskScheduler.setPoolSize(1);
taskScheduler.setRemoveOnCancelPolicy(true);
taskScheduler.setThreadNamePrefix("registrationTask");
return taskScheduler;
}
use of org.springframework.beans.factory.annotation.Qualifier in project spring-boot-admin by codecentric.
the class AdminServerCoreConfiguration method updateTaskScheduler.
@Bean
@Qualifier("updateTaskScheduler")
public ThreadPoolTaskScheduler updateTaskScheduler() {
ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
taskScheduler.setPoolSize(1);
taskScheduler.setRemoveOnCancelPolicy(true);
taskScheduler.setThreadNamePrefix("updateTask");
return taskScheduler;
}
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;
}
use of org.springframework.beans.factory.annotation.Qualifier in project hono by eclipse.
the class ApplicationConfig method tokenValidator.
/**
* Creates a helper for validating JWTs asserting a client's identity and authorities.
* <p>
* An instance of this bean is required for the {@code HonoSaslAuthenticationFactory}.
*
* @return The bean.
*/
@Bean
@Qualifier(AuthenticationConstants.QUALIFIER_AUTHENTICATION)
public AuthTokenHelper tokenValidator() {
ServiceConfigProperties amqpProps = amqpProperties();
AuthenticationServerConfigProperties serviceProps = serviceProperties();
if (!serviceProps.getValidation().isAppropriateForValidating() && amqpProps.getCertPath() != null) {
// fall back to TLS configuration
serviceProps.getValidation().setCertPath(amqpProps.getCertPath());
}
return AuthTokenHelperImpl.forValidating(vertx(), serviceProps.getValidation());
}
Aggregations