Class EnableTenantOptionSettingsConfiguration
java.lang.Object
com.cumulocity.microservice.settings.annotation.EnableTenantOptionSettingsConfiguration
@ConditionalOnExpression("#{\'${microservice.settings.enabled:true}\' && environment.containsProperty(\'C8Y.microservice.isolation\')}")
@Configuration
public class EnableTenantOptionSettingsConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncurrentApplicationSettingsApi
(com.cumulocity.sdk.client.RestOperations restOperations, PlatformProperties platformProperties) microserviceSettingsService
(PlatformProperties platformProperties, ContextService<MicroserviceCredentials> contextService, CurrentApplicationSettingsApi currentApplicationSettingsApi) tenantOptionPropertySource
(MicroserviceSettingsService microserviceSettingsService)
-
Constructor Details
-
EnableTenantOptionSettingsConfiguration
public EnableTenantOptionSettingsConfiguration()
-
-
Method Details
-
currentApplicationSettingsApi
@Bean @TenantScope @ConditionalOnBean({com.cumulocity.sdk.client.RestOperations.class,PlatformProperties.class}) public CurrentApplicationSettingsApi currentApplicationSettingsApi(com.cumulocity.sdk.client.RestOperations restOperations, PlatformProperties platformProperties) -
microserviceSettingsService
@Bean @ConditionalOnBean({PlatformProperties.class,ContextService.class,CurrentApplicationSettingsApi.class}) @ConditionalOnMissingBean public MicroserviceSettingsServiceImpl microserviceSettingsService(PlatformProperties platformProperties, ContextService<MicroserviceCredentials> contextService, CurrentApplicationSettingsApi currentApplicationSettingsApi) -
tenantOptionPropertySource
@Bean @ConditionalOnBean(MicroserviceSettingsService.class) public TenantOptionPropertySource tenantOptionPropertySource(MicroserviceSettingsService microserviceSettingsService)
-