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 midpoint
config.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
-
Method Summary
Modifier and TypeMethodDescriptiondataSource
(DataSourceFactory dataSourceFactory) dataSourceFactory
(SqaleRepositoryConfiguration repositoryConfiguration) repositoryService
(SqaleRepoContext sqlRepoContext, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection) sqaleRepositoryConfiguration
(MidpointConfiguration midpointConfiguration) sqlAuditServiceFactory
(SqaleRepositoryConfiguration sqaleRepositoryConfiguration, SchemaService schemaService, DataSource dataSource, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection) sqlRepoContext
(SqaleRepositoryConfiguration repositoryConfiguration, SchemaService schemaService, DataSource dataSource)
-
Constructor Details
-
SqaleRepositoryBeanConfig
public SqaleRepositoryBeanConfig()
-
-
Method Details
-
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
-
repositoryService
@Bean public SqaleRepositoryService repositoryService(SqaleRepoContext sqlRepoContext, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection) -
sqlAuditServiceFactory
@Bean public AuditServiceFactory sqlAuditServiceFactory(SqaleRepositoryConfiguration sqaleRepositoryConfiguration, SchemaService schemaService, DataSource dataSource, SqlPerformanceMonitorsCollection sqlPerformanceMonitorsCollection) -
systemConfigurationChangeDispatcher
-