[cdi-dev] [JBoss JIRA] (CDI-279) Provide CDI SPI that could be used to directly replace java.lang.reflect methods for expanding the use of @Stereotype to Java EE 7 platform
Antoine Sabot-Durand (JIRA)
issues at jboss.org
Sun Oct 9 22:25:00 EDT 2016
[ https://issues.jboss.org/browse/CDI-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Sabot-Durand updated CDI-279:
-------------------------------------
Fix Version/s: TBD
(was: 2.0 (discussion))
> Provide CDI SPI that could be used to directly replace java.lang.reflect methods for expanding the use of @Stereotype to Java EE 7 platform
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CDI-279
> URL: https://issues.jboss.org/browse/CDI-279
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Reporter: Hong Zhang
> Assignee: Pete Muir
> Fix For: TBD
>
>
> Please provide CDI SPI that could be used to directly replace the java.lang.reflect methods when expanding the use of @Stereotype to Java EE 7 platform.
> Also attaching the relevant sections from Bill's @Stereotype proposal below:
> ================================================
> Stereotypes are implemented by CDI, but (typically) the Java EE deployment processing has no knowledge of CDI when it's looking for Java EE annotations. Integrating with CDI so that stereotypes could be considered during this deployment-time annotation processing would require a new CDI SPI.
> Many existing implementations would need to be changed to understand
> how to expand stereotypes. Requiring every technology to do this
> itself will almost certainly lead to inconsistencies. Since stereotypes
> are a CDI feature, CDI will provide a simple replacement for the
> java.lang.reflect methods such as getAnnotations that takes into
> account stereotypes.
> Some technologies will not want to have a hard dependency on CDI so
> we'll need to provide a simple way for them to conditionally invoke
> these new methods only if CDI is present, falling back to java.lang.reflect
> if not. This seems straightforward. In this case, the functionality of
> @Stereotype would not be available to applications that chose to run
> without CDI.
> ===============================
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the cdi-dev
mailing list