Joined April 2013
·

Mocker

Palo Alto
·
·

I really don't understand what you are doing here. I mean, you have access to the class you want to callback, you know the method and parameters. Why not just call testClass.sayHello(..) as one normally would?

When i hear "callback" I presume A calls B to do something, then expects B to "callback" to A upon some condition. I don't really see that happening here.

Maybe B doesn't really know what A really is. Well its going to need to at least know the method name and parameters. Why not just use polymorphism constructs built into Java for that?

Achievements
1 Karma
0 Total ProTip Views