>   new InjectableRunnable<Updater<SomeUpdatable>>(injector, new 
> Key<Updater<SomeUpdatable>>() {})
> However, the runtime types aren't available and I'm getting the usual 
> expcetion:

If you are looking for generics on the InjectableRunnable then you
forgot to put {} at the end i.e.

new InjectableRunnable<Updater<SomeUpdatable>>(injector, new
Key<Updater<SomeUpdatable>>() {}){};

The api looks dry. How about each Updatable having an implicit
"InjectableRunnable" created - just like in Guice each Key has an
implicit Provider.

.addRecurringTask(SomeUpdatable.class);

Cheers
Alen

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to