"to no real benefit"
I think the benefit is clarity, and avoiding a class of error. Given
that you do want to differentiate between certain classes of constructor
on the basis of visibility, you do want this benefit, it's just that you
want it on the basis of a convention, rather than an annotation. That's
cool, but I would humbly suggest that the annotation was created for
just such a purpose - to indicate intent, and the restriction was
designed to enforce the intent - that this is an "injectable" class.
So... I guess it's an opinion, but I certainly don't feel that it's "to
no real benefit" even if that benefit is "merely" executable
documentation of intent and code-clarity.
Just my 10,000 satoshis,
Christian.
Christian Gruber :: Google, Inc. :: Java Core Libraries :: Dependency
Injection
email:
cgr...@google.com :::: mobile:
+1 (646) 807-9839