You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't really a bug as much as a design question. as far as i am aware @autofactory was designed as a more performant alternative to guices assisted-inject extension, so i am curious why in @autofactory you annotate all the parameters that you want to be injected whereas in guice you annotate all the parameters that should be explicitly passed (with @assisted).
I have a (mild) preference for the @assisted approach since
in my experience, there are are fewer @assisted params than @provided params
the provided params will often already have @qualifier annotations applied to them, so adding @provided adds more noise to the parameter declaration (plus raises unfortunate questions about annotation ordering)
The text was updated successfully, but these errors were encountered:
This isn't really a bug as much as a design question. as far as i am aware @autofactory was designed as a more performant alternative to guices assisted-inject extension, so i am curious why in @autofactory you annotate all the parameters that you want to be injected whereas in guice you annotate all the parameters that should be explicitly passed (with @assisted).
I have a (mild) preference for the @assisted approach since
The text was updated successfully, but these errors were encountered: