I have this field:
@Inject(optional=true)
@Named(NAMED_ERROR_HANDLER)
private PolymorphicDispatcher.ErrorHandler<IScope> errorHandler = new PolymorphicDispatcher.NullErrorHandler<IScope>();
and I need to override the default binding (NullErrorHandler). How do I do that?
I don’t have
PolymorphicDispatcher.ErrorHandlerand sons on board, but this binding should do the job:which
MyImplas something like this:The basic principle is explained here when you search for
TypeLiteral. (Sorry, no HTML-ID or anchor near that section).