Class EnableContextSupportConfiguration
- java.lang.Object
-
- com.cumulocity.microservice.context.annotation.EnableContextSupportConfiguration
-
@Configuration public class EnableContextSupportConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
TENANT_SCOPE
static String
USER_SCOPE
-
Constructor Summary
Constructors Constructor Description EnableContextSupportConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.beans.factory.config.CustomScopeConfigurer
contextScopeConfigurer(ContextService<MicroserviceCredentials> microserviceContextService, ContextService<UserCredentials> userContextService, Long cacheExpirationTimeout)
ContextService<Credentials>
credentialsContextService()
ContextService<MicroserviceCredentials>
microserviceContextService()
org.springframework.context.support.PropertySourcesPlaceholderConfigurer
propertySourcesPlaceholderConfigurer()
ContextService<UserCredentials>
userContextService()
-
-
-
Field Detail
-
USER_SCOPE
public static final String USER_SCOPE
- See Also:
- Constant Field Values
-
TENANT_SCOPE
public static final String TENANT_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
credentialsContextService
@Bean public ContextService<Credentials> credentialsContextService()
-
microserviceContextService
@Bean public ContextService<MicroserviceCredentials> microserviceContextService()
-
userContextService
@Bean public ContextService<UserCredentials> userContextService()
-
propertySourcesPlaceholderConfigurer
@Bean public org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer()
-
contextScopeConfigurer
@Bean public org.springframework.beans.factory.config.CustomScopeConfigurer contextScopeConfigurer(ContextService<MicroserviceCredentials> microserviceContextService, ContextService<UserCredentials> userContextService, @Value("${tenantCacheExpirationTimeout:300000}") Long cacheExpirationTimeout)
-
-