Roy Golan has posted comments on this change.

Change subject: core: missing DbFacade instance in VmDeviceutils
......................................................................


Patch Set 3:

(1 comment)

https://gerrit.ovirt.org/#/c/37914/3/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/VmDeviceUtils.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/VmDeviceUtils.java:

Line 56:     private final static int COMPANION_USB_CONTROLLERS = 3;
Line 57:     private final static int VNC_MIN_MONITORS = 1;
Line 58:     private final static int SINGLE_QXL_MONITORS = 1;
Line 59:     private static OsRepository osRepository = 
SimpleDependecyInjector.getInstance().get(OsRepository.class);
Line 60:     private static DbFacade dbFacade = Injector.get(DbFacade.class);
> I'm not sure if we can use Injector in a static context.
making Singleton utils as @Singleton beans is acceptable by me and not bad 
direction. meanwhile, since its not a small change, I want to use Injector 
instead of SimpleDependencyInjector - they are almost the same thing

the runtime works. test works if I invoke the test alone, but running the whole 
test suite is failing.

see updated patch soon
Line 61:     private static VmDeviceDAO dao = dbFacade.getVmDeviceDao();
Line 62: 
Line 63:     /**
Line 64:      * Update the vm devices according to changes made in vm static 
for existing VM


-- 
To view, visit https://gerrit.ovirt.org/37914
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5d86293bdff3dc5804f672f8ee0eb0756528e360
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzel...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzasp...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to