use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildUserServiceFactory.
@Bean
@Qualifier("userServiceFactory")
public RmiProxyFactoryBean buildUserServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/userService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(UserService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildQuestionServiceFactory.
@Bean
@Qualifier("questionServiceFactory")
public RmiProxyFactoryBean buildQuestionServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/questionService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(QuestionService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildCatalogServiceFactory.
@Bean
@Qualifier("catalogServiceFactory")
public RmiProxyFactoryBean buildCatalogServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/catalogService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(CatalogService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildPreparationServiceFactory.
@Bean
@Qualifier("preparationServiceFactory")
public RmiProxyFactoryBean buildPreparationServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/preparationService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(PreparationService.class);
return bean;
}
use of org.springframework.beans.factory.annotation.Qualifier in project TeachingInSimulation by ScOrPiOzzy.
the class RMIConfig method buildResourceServiceFactory.
@Bean
@Qualifier("resourceServiceFactory")
public RmiProxyFactoryBean buildResourceServiceFactory() {
RmiProxyFactoryBean bean = new RmiProxyFactoryBean();
bean.setServiceUrl("rmi://" + host + ":" + port + "/resourceService");
LOG.info("远程访问路径:{}", bean.getServiceUrl());
bean.setServiceInterface(ResourceService.class);
return bean;
}
Aggregations