Package com.evolveum.midpoint.repo.sqale
Class SqaleRepositoryBeanConfig
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqale.SqaleRepositoryBeanConfig
-
@Configuration @ConditionalOnExpression("#{midpointConfiguration.keyMatches(\'midpoint.repository.type\', \'(?i)s[qc]ale|native\')}") @ComponentScan public class SqaleRepositoryBeanConfig extends Object
New SQL repository related configuration.ConditionalOnMissingBean
annotations are used to avoid duplicate bean acquirement that would happen when combined with alternative configurations (e.g. context XMLs for test).ConditionalOnExpression
class annotation activates this configuration only if midpointconfig.xml
specifies the repository factory class from SQL package. To choose this "new SQL" repository set `type` element under `repository` to contain either `sqale`, `scale` or `native` (name used in docs). All values are case-insensitive.
-
-
Constructor Summary
Constructors Constructor Description SqaleRepositoryBeanConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
dataSource(DataSourceFactory dataSourceFactory)
DataSourceFactory
dataSourceFactory(SqaleRepositoryConfiguration repositoryConfiguration)
SqaleRepositoryService
repositoryService(SqaleRepoContext sqlRepoContext, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection)
SqaleRepositoryConfiguration
sqaleRepositoryConfiguration(MidpointConfiguration midpointConfiguration)
AuditServiceFactory
sqlAuditServiceFactory(SqaleRepositoryConfiguration sqaleRepositoryConfiguration, SchemaService schemaService, DataSource dataSource, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection)
SqlPerformanceMonitorsCollection
sqlPerformanceMonitorsCollection()
SqaleRepoContext
sqlRepoContext(SqaleRepositoryConfiguration repositoryConfiguration, SchemaService schemaService, DataSource dataSource)
SystemConfigurationChangeDispatcher
systemConfigurationChangeDispatcher()
-
-
-
Method Detail
-
sqaleRepositoryConfiguration
@Bean public SqaleRepositoryConfiguration sqaleRepositoryConfiguration(MidpointConfiguration midpointConfiguration)
-
dataSourceFactory
@Bean @ConditionalOnMissingBean public DataSourceFactory dataSourceFactory(SqaleRepositoryConfiguration repositoryConfiguration)
-
dataSource
@Bean @ConditionalOnMissingBean public DataSource dataSource(DataSourceFactory dataSourceFactory) throws RepositoryServiceFactoryException
-
sqlRepoContext
@Bean public SqaleRepoContext sqlRepoContext(SqaleRepositoryConfiguration repositoryConfiguration, SchemaService schemaService, DataSource dataSource)
-
sqlPerformanceMonitorsCollection
@Bean public SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection()
-
repositoryService
@Bean public SqaleRepositoryService repositoryService(SqaleRepoContext sqlRepoContext, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection)
-
sqlAuditServiceFactory
@Bean public AuditServiceFactory sqlAuditServiceFactory(SqaleRepositoryConfiguration sqaleRepositoryConfiguration, SchemaService schemaService, DataSource dataSource, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection)
-
systemConfigurationChangeDispatcher
@Bean public SystemConfigurationChangeDispatcher systemConfigurationChangeDispatcher()
-
-