[
https://jira.jboss.org/jira/browse/WELD-233?page=com.atlassian.jira.plugi...
]
Pete Muir commented on WELD-233:
--------------------------------
Santiago, this is very useful and makes some sort of sense (though something is wrong
here).
We fire the PP, PIT, and PMB events on the manager for module/bean deployment archive in
which the bean is discovered, whilst we fire the BeforeBeanDiscovery, AfterBeanDiscovery
and AfterDeploymentValidation on a "virtual" manager, which just has the
extension beans deployed.
To determine whether to add an extension (and thus the observers belonging to the
extension) to the manager for a bean deployment archive, we check whether the bean class
of the extension belongs to the current BeanDeploymentArchive via
Deployment.loadBeanDeploymentArchive().
If nothing else, at this point we are running into WELD-212 - if GF is returning a new BDA
for the extensions deployed outside of BDA passed in as part of the Deployment, which it
correctly adds to the accessible BDA graph for the various modules, this change to the
accessibility graph won't be picked up, as we don't rescan and rebuild the manager
accessibility structure after AfterBeanDiscovery, but before proceeding to deploy the
beans. I'll work on getting a test to reproduce this tomorrow.
A sub-set of events are reported to Extension classes defined in jar
files that are in WEB-INF/lib
--------------------------------------------------------------------------------------------------
Key: WELD-233
URL:
https://jira.jboss.org/jira/browse/WELD-233
Project: Weld
Issue Type: Bug
Affects Versions: 1.0.0.CR1
Environment: GlassFish v3 and Weld 1.0.0-CR1-SP1
Reporter: Paul Sandoz
Priority: Blocker
Fix For: 1.0.0.CR2
Attachments: jcditest.zip
Only the following events are reported: BEFORE BEAN DISCOVERY, PROCESS ANNOTATED TYPE,
AFTER BEAN DISCOVERY and AFTER DEPLOYMENT VALIDATION
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira