Details
-
Feature Request
-
Resolution: Won't Do
-
Major
-
None
-
1.0
-
None
-
None
Description
The @Inject spec defines the @Singleton annotation that can be used in @Inject impls or CDI . The annotations defined in CDI can only be used in CDI and could not be reused with @Inject impl.
If technically (or per the spec) it is possible to annotate the CDI annotations with @Scope (in addition of @NormalScope) then those annotations could be reused in @Inject implemetentation, removing the need for proprietary annotations that do the same (com.google.inject.servlet.RequestScoped for example).