[
https://issues.jboss.org/browse/CDI-267?page=com.atlassian.jira.plugin.sy...
]
Julien Viet updated CDI-267:
----------------------------
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 annotation 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).
was:
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.
It technically (or per the spec) it is possible to annotation 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).
Consider annotating built in scopes with @Scope
-----------------------------------------------
Key: CDI-267
URL:
https://issues.jboss.org/browse/CDI-267
Project: CDI Specification Issues
Issue Type: Feature Request
Affects Versions: 1.0
Reporter: Julien Viet
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 annotation 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).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira