[
https://issues.jboss.org/browse/CDI-532?page=com.atlassian.jira.plugin.sy...
]
Harald Wellmann commented on CDI-532:
-------------------------------------
Use cases:
* OSGi
* Java 9/Jigsaw
* other modular environments.
Pax CDI as well as the OSGi EEG CDI draft (currently dormant) work with (at most) one
container per bundle. The implementation relies on Weld and OpenWebBeans internal APIs.
Pax CDI has a best-effort but incomplete support for {{CDI.current()}}. Standard APIs for
these scenarios would be extremely helpful.
For Jigsaw, it should be possible to regard a CDI container as an implementation detail of
a given module. If module {{A}} uses a service {{Foo}} provided by module {{B}}, then
module {{B}} might require CDI for its {{FooImpl}}. This should neither imply nor exclude
{{A}} from being part of the same CDI container. {{A}} may not use CDI at all, or be part
of another CDI container disjoint from {{B}}'s. Each CDI container may contain beans
from multiple modules.
Support multiple container in Java SE
-------------------------------------
Key: CDI-532
URL:
https://issues.jboss.org/browse/CDI-532
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Java SE Integration
Affects Versions: 1.2.Final
Reporter: Antoine Sabot-Durand
We should propose a solution to support multiple container in Java SE.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)