[cdi-dev] [JBoss JIRA] (CDI-540) Clarify CDI container initialization in Java SE

Martin Kouba (JIRA) issues at jboss.org
Thu Jul 28 07:34:00 EDT 2016


     [ https://issues.jboss.org/browse/CDI-540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kouba resolved CDI-540.
------------------------------
    Resolution: Out of Date


> Clarify CDI container initialization in Java SE
> -----------------------------------------------
>
>                 Key: CDI-540
>                 URL: https://issues.jboss.org/browse/CDI-540
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Java SE Integration
>    Affects Versions: 2.0-EDR1
>            Reporter: Martin Kouba
>
> {{CDIProvider.isInitialized()}} javadoc should be clarified. I believe the spec should be more specific and define what it means for a CDIProvider to be initialized. E.g. _"a {{CDIProvider}} is initialized if at least one CDI container was started and is still running"_.
> {{CDI.shutdown()}} currently must throw an {{IllegalStateException}} if the container is already stopped (actually, the javadoc is missing this piece of information). However, there is no way how to find out whether a CDI container is running or not. {{CDIProvider.isInitialized()}} would be usable if multiple running containers were forbidden (which I hope will not be). Also it wouldn't make sense to ask an instance of {{CDIProvider}} whether a concrete {{CDI}} instance is running...



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list