protected <A extends Action<R>, R extends Result> void
bindHandler( Class<A> actionClass,
Class<? extends ActionHandler<A, R>> handlerClass ) {
bind( ActionHandlerMap.class ).annotatedWith( UniqueAnnotations.create() ).toInstance(
new ActionHandlerMapImpl<A, R>( actionClass,
handlerClass ) );
}
I was wondering why the : 'annotatedWith(UniqueAnnotations.create())'
is used ?
Is that to prevent accidental injection ?
It looks like it would work without this annotatedWith also, or am I
missing something here?
thanks Joost
David
On Friday, 16 December 2011 at 7:48 PM, joost wrote:
> I figured it out,
> I guess it is just for having unique bindings that this random
> annotation was added
>