cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject Callback pattern
Date Tue, 28 Jan 2014 02:55:41 GMT
Hi,

I've been looking at our callback pattern.

Can someone explain why we always seem to do this?:

caller.setCallback(caller.getTarget().createVolumeFromBaseImageCallBack(null,
null));

When setCallback is implemented like this:

public AsyncCallbackDispatcher<T, R> setCallback(Object useless) {

    return this;

 }

Why not just this?:

caller.getTarget().createVolumeFromBaseImageCallBack(null, null);

Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message