[cdi-dev] [JBoss JIRA] (CDI-539) Support for 'profile' in CDI

Mark Struberg (JIRA) issues at jboss.org
Fri Jul 10 02:19:03 EDT 2015


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

Mark Struberg commented on CDI-539:
-----------------------------------

> global activation of @Alternative @Stereotypes with @Priority or using an extension.
In OpenWebBeans they are globally enabled per ee module by default, even without @Priority.

I think the question was more about WHEN to activate those Alternatives and @Specializes. We did discuss the ProjectStage in the past and the conclusio was that this is nothing which CDI should define but it's an EE umbrella wide topic.

> Support for 'profile' in CDI
> ----------------------------
>
>                 Key: CDI-539
>                 URL: https://issues.jboss.org/browse/CDI-539
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Contexts
>            Reporter: Dhiraj Dwarapudi
>
> I would like to activate a set of beans at application start-time. Currently I can use Programmatic lookup in CDI for dynamically injecting the beans. But I believe it'll be easier with better support for this.
> Spring has a nice support for this with the concept of a 'Profile':
> https://spring.io/blog/2011/02/14/spring-3-1-m1-introducing-profile/
> Would be really helpful if CDI has support for this. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the cdi-dev mailing list