Search in sources :

Example 46 with Qualifier

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;
}
Also used : RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Qualifier(org.springframework.beans.factory.annotation.Qualifier) RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 47 with Qualifier

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;
}
Also used : RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Qualifier(org.springframework.beans.factory.annotation.Qualifier) RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 48 with Qualifier

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;
}
Also used : RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Qualifier(org.springframework.beans.factory.annotation.Qualifier) RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 49 with Qualifier

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;
}
Also used : RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Qualifier(org.springframework.beans.factory.annotation.Qualifier) RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 50 with Qualifier

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;
}
Also used : RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Qualifier(org.springframework.beans.factory.annotation.Qualifier) RmiProxyFactoryBean(org.springframework.remoting.rmi.RmiProxyFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

Qualifier (org.springframework.beans.factory.annotation.Qualifier)65 Bean (org.springframework.context.annotation.Bean)58 RmiProxyFactoryBean (org.springframework.remoting.rmi.RmiProxyFactoryBean)18 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)12 Configuration (org.springframework.context.annotation.Configuration)7 EnableConfigurationProperties (org.springframework.boot.context.properties.EnableConfigurationProperties)6 lombok.val (lombok.val)5 CasConfigurationProperties (org.apereo.cas.configuration.CasConfigurationProperties)5 ConfigurationProperties (org.springframework.boot.context.properties.ConfigurationProperties)5 RequestResponseClientConfigProperties (org.eclipse.hono.client.RequestResponseClientConfigProperties)4 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)4 ScopedProxyMode (org.springframework.context.annotation.ScopedProxyMode)4 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 HashSet (java.util.HashSet)3 List (java.util.List)3 Collectors (java.util.stream.Collectors)3 ClientFactoryBuilder (com.linecorp.armeria.client.ClientFactoryBuilder)2 IdMCacheConfiguration (eu.bcvsolutions.idm.core.api.config.cache.IdMCacheConfiguration)2 Supplier (java.util.function.Supplier)2