当前位置: 首页>>代码示例>>Java>>正文


Java TenantListRepository类代码示例

本文整理汇总了Java中com.icthh.xm.commons.config.client.repository.TenantListRepository的典型用法代码示例。如果您正苦于以下问题:Java TenantListRepository类的具体用法?Java TenantListRepository怎么用?Java TenantListRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TenantListRepository类属于com.icthh.xm.commons.config.client.repository包,在下文中一共展示了TenantListRepository类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DatabaseConfiguration

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
public DatabaseConfiguration(Environment env,
                             JpaProperties jpaProperties,
                             TenantListRepository tenantListRepository) {
    this.env = env;
    this.jpaProperties = jpaProperties;
    this.tenantListRepository = tenantListRepository;
}
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:8,代码来源:DatabaseConfiguration.java

示例2: tenantListRepository

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
@Bean
public TenantListRepository tenantListRepository() {
    TenantListRepository mockTenantListRepository = mock(TenantListRepository.class);
    doAnswer(mvc -> tenants.add(mvc.getArguments()[0].toString())).when(mockTenantListRepository).addTenant(any());
    doAnswer(mvc -> tenants.remove(mvc.getArguments()[0].toString())).when(mockTenantListRepository).deleteTenant(any());
    when(mockTenantListRepository.getTenants()).thenReturn(tenants);
    return  mockTenantListRepository;
}
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:9,代码来源:TenantConfigMockConfiguration.java

示例3: TenantVerifyInterceptor

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
public TenantVerifyInterceptor(
                TenantListRepository tenantListRepository,
                TenantContextHolder tenantContextHolder) {
    this.tenantListRepository = Objects.requireNonNull(tenantListRepository,
                    "tenantListRepository can't be null");
    this.tenantContextHolder = Objects.requireNonNull(tenantContextHolder,
                    "tenantContextHolder can't be null");
}
 
开发者ID:xm-online,项目名称:xm-commons,代码行数:9,代码来源:TenantVerifyInterceptor.java

示例4: tenantVerifyInterceptor

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
@Bean
@Order(2)
@ConditionalOnExpression("${xm-config.enabled} && ${tenant.reject-suspended:true}")
TenantVerifyInterceptor tenantVerifyInterceptor(TenantListRepository tenantListRepository,
                                                TenantContextHolder tenantContextHolder) {
    return new TenantVerifyInterceptor(tenantListRepository, tenantContextHolder);
}
 
开发者ID:xm-online,项目名称:xm-commons,代码行数:8,代码来源:XmMsWebConfiguration.java

示例5: TenantMappingServiceImpl

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
public TenantMappingServiceImpl(ApplicationProperties applicationProperties,
                                TenantListRepository tenantListRepository,
                                @Value("${spring.application.name}") String applicationName) {
    this.hosts = unmodifiableList(applicationProperties.getHosts());
    this.tenantListRepository = tenantListRepository;
    this.applicationName = applicationName;
}
 
开发者ID:xm-online,项目名称:xm-gate,代码行数:8,代码来源:TenantMappingServiceImpl.java

示例6: TenantInterceptor

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
public TenantInterceptor(ApplicationProperties applicationProperties,
                         LepManager lepManager,
                         TenantListRepository tenantListRepository) {
    this.applicationProperties = applicationProperties;
    this.tenantListRepository = tenantListRepository;
    this.lepManager = Objects.requireNonNull(lepManager, "lepManager can't be null");
}
 
开发者ID:xm-online,项目名称:xm-ms-entity,代码行数:8,代码来源:TenantInterceptor.java

示例7: tenantListRepository

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
@Bean
public TenantListRepository tenantListRepository(@Qualifier(XM_CONFIG_REST_TEMPLATE) RestTemplate restTemplate,
                                                 @Value("${spring.application.name}") String applicationName,
                                                 XmConfigProperties xmConfigProperties) {
    return new TenantListRepository(restTemplate, applicationName, xmConfigProperties);
}
 
开发者ID:xm-online,项目名称:xm-commons,代码行数:7,代码来源:XmConfigAutoConfigration.java

示例8: TenantInterceptor

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
public TenantInterceptor(ApplicationProperties applicationProperties,
                         TenantListRepository tenantListRepository) {
    this.applicationProperties = applicationProperties;
    this.tenantListRepository = tenantListRepository;
}
 
开发者ID:xm-online,项目名称:xm-ms-balance,代码行数:6,代码来源:TenantInterceptor.java

示例9: DatabaseConfiguration

import com.icthh.xm.commons.config.client.repository.TenantListRepository; //导入依赖的package包/类
public DatabaseConfiguration(Environment env, JpaProperties jpaProperties, TenantListRepository tenantListRepository) {
    this.env = env;
    this.jpaProperties = jpaProperties;
    this.tenantListRepository = tenantListRepository;
}
 
开发者ID:xm-online,项目名称:xm-ms-dashboard,代码行数:6,代码来源:DatabaseConfiguration.java


注:本文中的com.icthh.xm.commons.config.client.repository.TenantListRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。