Yair Zaslavsky has posted comments on this change. Change subject: core: move findActiveISODomain to IsoDomainListSyncronizer (2) ......................................................................
Patch Set 5: (2 inline comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/IsoDomainListSyncronizer.java Line 96: * @return Singleton instance of IsoDomainManager Line 97: */ Line 98: public static IsoDomainListSyncronizer getInstance() { Line 99: if (isoDomainListSyncronizer == null) { Line 100: synchronized (IsoDomainListSyncronizer.class) { Can you elaborate on the motivation to change the getInstance? Why not have static initialization? Line 101: if (isoDomainListSyncronizer == null) { Line 102: isoDomainListSyncronizer = new IsoDomainListSyncronizer(); Line 103: } Line 104: } Line 774: } Line 775: return isoGuid; Line 776: } Line 777: Line 778: private StorageDomainDAO getStorageDomainDAO() { s/private/protected (if we ever want to add a test to IsoDomainListSynchronizer and mock the DAO, this is a good start). Line 779: return DbFacade.getInstance().getStorageDomainDao(); Line 780: } -- To view, visit http://gerrit.ovirt.org/13398 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Icce0924f3b7875752b4ff1df7b55d9e293da5cd6 Gerrit-PatchSet: 5 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Laszlo Hornyak <lhorn...@redhat.com> Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: ofri masad <oma...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches