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

Dhiraj Dwarapudi (JIRA) issues at jboss.org
Tue Jul 7 15:04:02 EDT 2015


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

Dhiraj Dwarapudi commented on CDI-539:
--------------------------------------

[~tzwoenn]
Yeah, something similar to ProjectStage. 

But 'profile' is more usable and covers larger use cases. 
* I can have mutliple profiles active at the same time
* I would like to boootstrap my application at start-time with different profiles. ProjectStage can be used to accomplish this, but the intent of ProjectStage (as the name suggests) seem to be more for different stages of application development
* The way 'profile's are implemented in Spring, a custom profile is just another string. So you don't need to write any code to support custom 'profile'. For that matter there are not built-in profiles. They are user-defined.


> 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