Class EnableMicroserviceSubscriptionConfiguration
java.lang.Object
com.cumulocity.microservice.subscription.annotation.EnableMicroserviceSubscriptionConfiguration
@Configuration
@ComponentScan(basePackageClasses={MicroserviceSubscriptionsService.class,MicroserviceSubscriptionsRepository.class})
@ConditionalOnProperty(value="microservice.subscription.enabled",
havingValue="true",
matchIfMissing=true)
public class EnableMicroserviceSubscriptionConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationApi
(com.cumulocity.sdk.client.RestOperations restOperations) metadata
(org.springframework.core.env.Environment environment) microserviceRepository
(PlatformProperties properties, org.springframework.core.env.Environment environment) platformProperties
(PlatformProperties.PlatformPropertiesProvider platformPropertiesProvider)
-
Constructor Details
-
EnableMicroserviceSubscriptionConfiguration
public EnableMicroserviceSubscriptionConfiguration()
-
-
Method Details
-
platformPropertiesProvider
@Bean @ConditionalOnMissingBean public PlatformProperties.PlatformPropertiesProvider platformPropertiesProvider() -
platformProperties
@Bean @ConditionalOnMissingBean public PlatformProperties platformProperties(PlatformProperties.PlatformPropertiesProvider platformPropertiesProvider) -
microserviceRepository
@Bean @ConditionalOnMissingBean public MicroserviceRepository microserviceRepository(PlatformProperties properties, org.springframework.core.env.Environment environment) -
metadata
@Bean @Order @ConditionalOnMissingBean public MicroserviceMetadataRepresentation metadata(org.springframework.core.env.Environment environment) throws IOException - Throws:
IOException
-
applicationApi
@Bean @TenantScope @ConditionalOnMissingBean public ApplicationApi applicationApi(com.cumulocity.sdk.client.RestOperations restOperations)
-