Search in sources :

Example 1 with SequenceUuidFactory

use of org.sonar.core.util.SequenceUuidFactory in project sonarqube by SonarSource.

the class DbTester method initDbClient.

private void initDbClient() {
    TransientPicoContainer ioc = new TransientPicoContainer();
    ioc.addComponent(db.getMyBatis());
    ioc.addComponent(system2);
    ioc.addComponent(new SequenceUuidFactory());
    for (Class daoClass : DaoModule.classes()) {
        ioc.addComponent(daoClass);
    }
    List<Dao> daos = ioc.getComponents(Dao.class);
    client = new DbClient(db.getDatabase(), db.getMyBatis(), daos.toArray(new Dao[daos.size()]));
}
Also used : SequenceUuidFactory(org.sonar.core.util.SequenceUuidFactory) TransientPicoContainer(org.picocontainer.containers.TransientPicoContainer)

Aggregations

TransientPicoContainer (org.picocontainer.containers.TransientPicoContainer)1 SequenceUuidFactory (org.sonar.core.util.SequenceUuidFactory)1