Greg Sheremeta has posted comments on this change.

Change subject: userportal,webadmin: frontend refactor phase 2
......................................................................


Patch Set 4: Code-Review+1

(1 comment)

....................................................
File 
frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/communication/OperationProcessor.java
Line 133:      * @param manager The {@code VdcOperationManager} that has the 
operation.
Line 134:      * @return A VdcOperationCallback.
Line 135:      */
Line 136:     @SuppressWarnings("unchecked")
Line 137:     private VdcOperationCallback<?, ?> createCallback(final 
VdcOperationManager manager) {
How do you feel about using terminology of "callback wrapper" or "callback 
decorator" ? In the case of the list, it might even be a "callback composite". 
I'm not sure which would be more correct. But I think a little more clarity 
around "originals" and "wrappers" is the only thing missing.

For example.
might want to have a wrapper class (even if it's only a marker)
VdcOperationCallback --> VdcOperationCallbackWrapper
createCallback --> createCallbackWrapper
createListCallback --> createListCallbackWrapper

anywhere you say "new", I'd replace with "wrapper". "old and new" is not as 
clear as "original and wrapper"

This latest patchset is much more clear, ty.
Line 138:         return new VdcOperationCallback<VdcOperation<?, ?>, Object>() 
{
Line 139:             @Override
Line 140:             public void onSuccess(final VdcOperation<?, ?> operation, 
final Object result) {
Line 141:                 // Do nothing more than call original callback.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Id19491b8fd4f30ad3a88790eaad664d679b35e22
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkap...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Einav Cohen <eco...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gsher...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
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