use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildPreparationResourceServiceFactory.
@Bean
@Qualifier("preparationResourceServiceFactory")
public RmiProxyFactoryBean buildPreparationResourceServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/preparationResourceService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(PreparationResourceService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildElecCompServiceFactory.
@Bean
@Qualifier("elecCompServiceFactory")
public RmiProxyFactoryBean buildElecCompServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/elecCompService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(ElecCompService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project hono by eclipse.
the class ApplicationConfig method authTokenFactory.
/**
* Exposes a factory for JWTs asserting a client's identity as a Spring bean.
*
* @return The bean.
*/
@Bean
@Qualifier("signing")
public AuthTokenHelper authTokenFactory() {
ServiceConfigProperties amqpProps = amqpProperties();
AuthenticationServerConfigProperties serviceProps = serviceProperties();
if (!serviceProps.getSigning().isAppropriateForCreating() && amqpProps.getKeyPath() != null) {
// fall back to TLS configuration
serviceProps.getSigning().setKeyPath(amqpProps.getKeyPath());
}
return AuthTokenHelperImpl.forSigning(vertx(), serviceProps.getSigning());
}
use of org.springframework.beans.factory.annotation.Qualifier in project hono by eclipse.
the class AbstractAdapterConfig method registrationServiceClientConfig.
/**
* Exposes configuration properties for accessing the registration service as a Spring bean.
* <p>
* Sets the <em>amqpHostname</em> to {@code hono-device-registry} if not set explicitly.
*
* @return The properties.
*/
@Qualifier(RegistrationConstants.REGISTRATION_ENDPOINT)
@ConfigurationProperties(prefix = "hono.registration")
@Bean
public RequestResponseClientConfigProperties registrationServiceClientConfig() {
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
customizeRegistrationServiceClientConfig(config);
return config;
}
use of org.springframework.beans.factory.annotation.Qualifier in project hono by eclipse.
the class AbstractAdapterConfig method credentialsServiceClientConfig.
/**
* Exposes configuration properties for accessing the credentials service as a Spring bean.
*
* @return The properties.
*/
@Qualifier(CredentialsConstants.CREDENTIALS_ENDPOINT)
@ConfigurationProperties(prefix = "hono.credentials")
@Bean
public ClientConfigProperties credentialsServiceClientConfig() {
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
customizeCredentialsServiceClientConfig(config);
return config;
}
Aggregations