@SpringBootConfiguration
@AutoConfigureAfter(value=ClientCacheAutoConfiguration.class)
@ConditionalOnBean(value=org.apache.geode.cache.GemFireCache.class)
@ConditionalOnClass(value=org.springframework.data.gemfire.repository.GemfireRepository.class)
@ConditionalOnMissingBean(value={org.springframework.data.gemfire.repository.config.GemfireRepositoryConfigurationExtension.class,org.springframework.data.gemfire.repository.support.GemfireRepositoryFactoryBean.class})
@ConditionalOnProperty(prefix="spring.data.gemfire.repositories",
name="enabled",
havingValue="true",
matchIfMissing=true)
@Import(value=GemFireRepositoriesAutoConfigurationRegistrar.class)
public class RepositoriesAutoConfiguration
extends java.lang.Object
Spring Boot auto-configuration
for Spring Data for Apache Geode (SDG) Repositories.
Activates when there is a bean of type Cache
or ClientCache
configured in the Spring context,
the Spring Data Geode GemfireRepository
type is on the classpath, and no other existing
GemfireRepositories
are configured.
Once in effect, the auto-configuration is the equivalent of enabling Geode Repositories using the
EnableGemfireRepositories
annotation.
- Since:
- 1.0.0
- See Also:
Cache
,
GemFireCache
,
ClientCache
,
SpringBootConfiguration
,
EnableAutoConfiguration
,
Import
,
GemfireRepository
,
EnableGemfireRepositories
,
GemfireRepositoryConfigurationExtension
,
GemfireRepositoryFactoryBean
,
ClientCacheAutoConfiguration
,
GemFireRepositoriesAutoConfigurationRegistrar