[JBoss JIRA] (CDI-711) BeanConfigurator cannot be used to define alternative beans enabled for an application

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JBoss JIRA] (CDI-711) BeanConfigurator cannot be used to define alternative beans enabled for an application

JIRA issues@jboss.org

    [ https://issues.jboss.org/browse/CDI-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448359#comment-13448359 ]

Matej Novotny edited comment on CDI-711 at 8/17/17 4:48 AM:
------------------------------------------------------------

Looks like a valid use case we missed.
-Just thinking whether there wasn't some kind of a problem with defining an enabled alternative this late in the bootstrap process?-
EDIT: Shouldn't cause any troubles as it is really just a twist on a custom bean with {{@Prioritized}}.

Also, how about adding another method which would allow you to declare the bean as alternative while selecting it at the same time - {{alternativeWithPriority(int priority)}}?


was (Author: manovotn):
Looks like a valid use case we missed.
Just thinking whether there wasn't some kind of a problem with defining an enabled alternative this late in the bootstrap process?

> BeanConfigurator cannot be used to define alternative beans enabled for an application
> ---------------------------------------------------------------------------------------
>
>                 Key: CDI-711
>                 URL: https://issues.jboss.org/browse/CDI-711
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions
>    Affects Versions: 2.0 .Final
>            Reporter: Martin Kouba
>             Fix For: 2.1 (Discussion)
>
>
> Custom bean implementations may implement {{Prioritized}} interface. There should be probably a {{BeanConfigurator.priority(int priority)}} method.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
_______________________________________________
cdi-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/cdi-dev

Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.