[cdi-dev] [JBoss JIRA] (CDI-655) Allow CDIProvider to specify the priority
Martin Kouba (JIRA)
issues at jboss.org
Mon Nov 28 04:06:00 EST 2016
[ https://issues.jboss.org/browse/CDI-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Kouba updated CDI-655:
-----------------------------
Description: Right now, the CDI class takes the first provider whose {{javax.enterprise.inject.spi.CDIProvider.getCDI()}} does not return null. It might be useful to allow the CDIProvider authors to specify a priority (either by @Priority or by Prioritized) and sort the discovered providers so that those with higher priority are taken first. (was: Right now, the CDI class takes the first provider whose {{javax.enterprise.inject.spi.CDIProvider.getCDI()}} does not return null. It might be useful to allow the CDIProvider authors to specify a priority (either by @Priority or by Prioritized) and sort the implementations so that providers with higher priority are taken first.)
> Allow CDIProvider to specify the priority
> ------------------------------------------
>
> Key: CDI-655
> URL: https://issues.jboss.org/browse/CDI-655
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Reporter: Martin Kouba
>
> Right now, the CDI class takes the first provider whose {{javax.enterprise.inject.spi.CDIProvider.getCDI()}} does not return null. It might be useful to allow the CDIProvider authors to specify a priority (either by @Priority or by Prioritized) and sort the discovered providers so that those with higher priority are taken first.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the cdi-dev
mailing list