Mark Struberg created TOMEE-1602:
------------------------------------
Summary: optional 'EAR-wide' CDI Extensions
Key: TOMEE-1602
URL: https://issues.apache.org/jira/browse/TOMEE-1602
Project: TomEE
Issue Type: Wish
Reporter: Mark Struberg
Assignee: Mark Struberg
In TomEE we load all CDI Extensions always 1:1 to the BeanManager. This is
perfectly fine from an isolation pov (and actually the only sane mode which
does _not_ leak classes to other classloaders). But other containers don't
behave that way and some Extensions rely on this behaviour...
E.g. when parsing the classpath with @Observes ProcessAnnotatedType, storing
some info in a Collection and then using this collected info in another phase
later. This might lead to not seeing the scanned information though..
I'm not quite sure if we should implement a Extension 'sharing' compatibility
mode or whether we should fix this properly in DeltaSpike, etc.
For having a clean solution we would need to push this in CDI-2.0 by e.g.
introducing a @Inject @Parent MyExtension qualifier.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)