public abstract class CosmosConfigurationSupport extends Object
| Constructor and Description |
|---|
CosmosConfigurationSupport() |
| Modifier and Type | Method and Description |
|---|---|
CosmosMappingContext |
cosmosMappingContext()
Declare CosmosMappingContext bean.
|
ExpressionResolver |
expressionResolver(org.springframework.beans.factory.BeanFactory beanFactory)
Declare ExpressionResolver bean.
|
protected abstract String |
getDatabaseName()
Return the name of the database to connect to
|
protected Set<Class<?>> |
getInitialEntitySet()
Scan all base packages and get all beans
|
protected Collection<String> |
getMappingBasePackages() |
protected Set<Class<?>> |
scanForEntities(String basePackage)
Scan all beans under the given base package
|
protected abstract String getDatabaseName()
@Bean public ExpressionResolver expressionResolver(org.springframework.beans.factory.BeanFactory beanFactory)
beanFactory - used to initialize the embeddedValueResolver@Bean public CosmosMappingContext cosmosMappingContext() throws ClassNotFoundException
ClassNotFoundException - if the class type is invalidprotected Collection<String> getMappingBasePackages()
protected Set<Class<?>> getInitialEntitySet() throws ClassNotFoundException
ClassNotFoundException - if the class type is invalidprotected Set<Class<?>> scanForEntities(String basePackage) throws ClassNotFoundException
basePackage - set the base location of beansClassNotFoundException - if the class type is invalidCopyright © 2021 Microsoft Corporation. All rights reserved.