[midPoint-git] [Evolveum/midpoint] 3666b1: SqlRepositoryBeanConfig: explicit bean dependencie...

virgo47 noreply at github.com
Fri Jun 26 18:22:35 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 3666b18df436ac8f8108f5cdf19ebf1c18772b45
      https://github.com/Evolveum/midpoint/commit/3666b18df436ac8f8108f5cdf19ebf1c18772b45
  Author: Richard Richter <richard.richter at evolveum.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlRepositoryBeanConfig.java

  Log Message:
  -----------
  SqlRepositoryBeanConfig: explicit bean dependencies as arguments

DataSourceFactory.createDataSource() is called directly for dsf bean,
not later in sessionFactory(), otherwise it was possible to obtain DSF
without initialized datasource, which is not helpful.
This wasn't problem because ORM is initialized too, but if for whatever
reason sessionFactory() is not called (e.g. in test), DSF fails to give
us SQL connection.




More information about the midPoint-svn mailing list