John Ericksen
John Ericksen
I like your super caller syntax better, and it would support the base class in a more general way. What do you think about the following: ``` java interface SuperCaller{...
The string lookup bothers me as well, not to mention the Object varargs. These would have to be validated at run time (unless we got really crafty with the Trees...
If we made this a property of only event and call-through methods, we may not even need the `@ManualSuper` declaration... we could just do the following: ``` java @RegisterListener class...
Ok, this is implemented on 0.3.0-SNAPSHOT (d8301d176c462b95e81a5329c3d22cad6f9c2455) for lifecycle events. I'll implement call-through methods in a bit.
Not sure about the call-through implmentation... Here's what it looks like: ``` java public interface ActivityMenuComponent { @CallThrough boolean onCreateOptionsMenu(Menu menu, SuperCaller superCaller); @CallThrough boolean onPrepareOptionsMenu(Menu menu, SuperCaller superCaller); @CallThrough...
The hallmark of the call-through feature is that they have a non-void return type and a specific method signature. Probably the most common call-through is the `ActivityMenuComponent` which has the...
Are you also injecting the MenuController into your `SearchActivity`? It looks like you've encountered a dependency loop. Transfuse handles this case, but you have to break it somewhere by either...
Shoot. You'll have to break the dependency loop by either injecting `MenuController` under an interface or just making your `SearchActivity` the `ActivityMenuComponent`. Here's how to inject via the interface: ```...
Shoot, you may have to move the ActivityMenuComponent interface to as superclass of MenuController: ``` java public interface MenuController extends ActivityMenuComponent{} public class MenuControllerImpl implements MenuController {} ``` Are you...
I went ahead and duplicated this problem. I was able to make it work by changing the activityProvider back to just an activity injection and duplicating the callthrough method interface...