use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildTypicalCaseServiceFactory.
@Bean
@Qualifier("typicalCaseServiceFactory")
public RmiProxyFactoryBean buildTypicalCaseServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/typicalCaseService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(TypicalCaseService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project runelite by runelite.
the class CacheConfiguration method sql2o.
@Bean
@Qualifier("Runelite Cache SQL2O")
public Sql2o sql2o(DataSource dataSource) {
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o(dataSource, new NoQuirks(converters));
}
use of org.springframework.beans.factory.annotation.Qualifier in project xm-ms-entity by xm-online.
the class WebappTenantOverrideConfiguration method webappTenantConfigRepository.
@Bean
@Qualifier("webappTenantConfigRepository")
public TenantConfigRepository webappTenantConfigRepository() {
TenantConfigRepository repository = Mockito.mock(TenantConfigRepository.class);
Mockito.doNothing().when(repository).updateConfig(Mockito.anyString(), Mockito.anyString(), Mockito.anyString());
return repository;
}
use of org.springframework.beans.factory.annotation.Qualifier in project giftcard-demo-series by AxonIQ.
the class EventStoreJpaConfig method eventsFlyway.
/**
**********************************************************************
* Using Flyway to do the required schema creation/updates
***********************************************************************
*/
@Bean
@Qualifier("events")
@ConfigurationProperties(prefix = "events.flyway")
public Flyway eventsFlyway(@Qualifier("events") DataSource dataSource) {
Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
return flyway;
}
use of org.springframework.beans.factory.annotation.Qualifier in project zipkin by openzipkin.
the class ZipkinElasticsearchStorageConfiguration method esClientFactory.
// exposed as a bean so that we can test TLS by swapping it out.
// TODO: see if we can override the TLS via properties instead as that has less surface area.
@Bean
@Qualifier(QUALIFIER)
@ConditionalOnMissingBean
ClientFactory esClientFactory(ZipkinElasticsearchStorageProperties es, MeterRegistry meterRegistry) throws Exception {
ClientFactoryBuilder builder = ClientFactory.builder();
Ssl ssl = es.getSsl();
if (ssl.isNoVerify())
builder.tlsNoVerify();
// Allow use of a custom KeyStore or TrustStore when connecting to Elasticsearch
if (ssl.getKeyStore() != null || ssl.getTrustStore() != null)
configureSsl(builder, ssl);
// TODO: find or raise a bug with Elastic
return builder.useHttp2Preface(false).connectTimeoutMillis(es.getTimeout()).meterRegistry(meterRegistry).build();
}
Aggregations