@Configuration @EnableConfigurationProperties(value=HSQLDBProperties.class) @ConditionalOnProperty(prefix="demo.database", name="autoConfigEnabled", matchIfMissing=true) public class HSQLDatabaseAutoConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
environment |
protected HSQLDBProperties |
props |
| Constructor and Description |
|---|
HSQLDatabaseAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
HSQLDBServer |
blEmbeddedDatabase() |
protected DataSource |
buildDataSource() |
DataSource |
demoDS() |
DataSource |
webDS() |
DataSource |
webEventDS() |
DataSource |
webSecureDS() |
DataSource |
webStorageDS() |
@Autowired protected HSQLDBProperties props
@Autowired protected org.springframework.core.env.Environment environment
@ConditionalOnMissingBean(name="webDS") @Bean public HSQLDBServer blEmbeddedDatabase()
@ConditionalOnMissingBean(name="webDS") @DependsOn(value="blEmbeddedDatabase") @Bean @Primary public DataSource webDS()
@ConditionalOnMissingBean(name="webSecureDS") @DependsOn(value="blEmbeddedDatabase") @Bean public DataSource webSecureDS()
@ConditionalOnMissingBean(name="webStorageDS") @DependsOn(value="blEmbeddedDatabase") @Bean public DataSource webStorageDS()
@ConditionalOnMissingBean(name="webEventDS") @DependsOn(value="blEmbeddedDatabase") @Bean public DataSource webEventDS()
@ConditionalOnMissingBean(name="demoDS") @ConditionalOnClass(name="com.blcdemo.core.domain.PDSite") @DependsOn(value="blEmbeddedDatabase") @Bean public DataSource demoDS()
protected DataSource buildDataSource()
Copyright © 2022. All rights reserved.