Yair Zaslavsky has posted comments on this change.

Change subject: core: refactoring quota CRUD commands
......................................................................


Patch Set 3: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/QuotaCRUDCommand.java
Line 17:         // TODO Auto-generated method stub
Remove //todo

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveQuotaCommand.java
Line 77:         
QuotaManager.getInstance().removeQuotaFromCache(getQuota().getStoragePoolId(), 
getParameters().getQuotaId());
Please try to avoid singletons as much as possible.
Refactor QutoaManager.getInstance (extract method to getQuotaManager, plase it 
in QUtoaCRUDCommand).
In future we will inject all these singleton manager (DbFacade, QuotaManage, 
etc..)

--
To view, visit http://gerrit.ovirt.org/6302
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I78124bce99bad0d716e711b6dd76e9c763affbc6
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@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>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to