Hi,
When configuring a module, we can use @Provides annotation. But for
libraries, It can be very useful to allow these methods to be overriden:
Injector injector = Guice.createInjector(new MycilaEventGuiceModule() {
@Override
@Provides
@Singleton
protected Dispatcher dispatcher(ErrorHandler errorHandler) {
return Dispatchers.synchronousUnsafe(errorHandler);
}
});
Unfortunately, ProviderMethodsModule only check for declared method and
does not use the class hierarchy to detect overriden method.
Would it be possible to fix it so that overriden annotated methods could
replace original ones ?
Original issue reported on code.google.com by mathieu....@gmail.com on 18 Nov 2009 at 5:57
Original issue reported on code.google.com by
mathieu....@gmail.com
on 18 Nov 2009 at 5:57