Skip to content

Commit

Permalink
Only create AnnotatedTypes for classes found in the physical BDAs
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Jan 23, 2013
1 parent e90fd55 commit 8f67293
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions impl/src/main/java/org/jboss/weld/bootstrap/WeldBootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -400,16 +400,16 @@ public Bootstrap startInitialization() {

BeforeBeanDiscoveryImpl.fire(deploymentManager, deployment, beanDeployments, contexts, enablementBuilder);

// Re-Read the deployment structure, this will be the physical
// structure, extensions and any classes added using addAnnotatedType
// outside the physical BDA
beanDeployments = deploymentVisitor.visit();

// for each BDA transform its classes into WeldClass instances
for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
entry.getValue().createClasses();
}

// Re-Read the deployment structure, this will be the physical
// structure, extensions and any classes added using addAnnotatedType
// outside the physical BDA
beanDeployments = deploymentVisitor.visit();

for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
BeanDeployment beanDeployment = entry.getValue();
if (physicalBeanDeploymentArchives.contains(entry.getKey())) {
Expand Down

0 comments on commit 8f67293

Please sign in to comment.