Package io.jmix.autoconfigure.core
Class JmixDataRepositoryAutoConfiguration
java.lang.Object
io.jmix.autoconfigure.core.JmixDataRepositoryAutoConfiguration
@AutoConfiguration
@ConditionalOnBean(DataManager.class)
@ConditionalOnClass(JmixDataRepository.class)
@ConditionalOnMissingBean({JmixRepositoryFactoryBean.class,JmixRepositoryConfigurationExtension.class})
@ConditionalOnProperty(prefix="jmix.core.data-repositories",
name="enabled",
havingValue="true",
matchIfMissing=true)
@Import(BootJmixRepositoriesRegistrar.class)
@AutoConfigureAfter(org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration.class)
public class JmixDataRepositoryAutoConfiguration
extends Object
Auto-configuration
for Jmix data repositories.
Activates when:
- there is a bean of type
DataManager
configured in the context, JmixDataRepository
type is on the classpath,- no other
JmixDataRepository
configured, - "
jmix.core.dataRepositories.enabled
" property is missing or having value: "true".
Once in effect, the auto-configuration is the equivalent of enabling Jmix repositories
using the @EnableJmixDataRepositories
annotation.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JmixDataRepositoryAutoConfiguration
public JmixDataRepositoryAutoConfiguration()
-