Skip to content

Commit

Permalink
GTNPORTAL-3426 - Revert change to the CDI extension processor
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrohling authored and ppalaga committed Mar 21, 2014
1 parent 20bcd7c commit 8c02cd8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.jboss.as.server.deployment.DeploymentUnitProcessor;
import org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex;
import org.jboss.as.weld.WeldDeploymentMarker;
import org.jboss.as.weld.deployment.WeldAttachments;
import org.jboss.logging.Logger;
import org.jboss.modules.Module;
import org.jboss.weld.bootstrap.spi.Metadata;
Expand Down Expand Up @@ -48,7 +49,7 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
Metadata<Extension> metadata = new MetadataImpl<Extension>(extension, deploymentUnit.getName());
log.debug("Loaded portable extension " + extension);

deploymentUnit.addToAttachmentList(AttachmentKey.createList(Metadata.class), metadata);
deploymentUnit.addToAttachmentList(WeldAttachments.PORTABLE_EXTENSIONS, metadata);
}

private Extension loadExtension(String serviceClassName, final DeploymentReflectionIndex index, final ClassLoader loader) throws DeploymentUnitProcessingException {
Expand Down

0 comments on commit 8c02cd8

Please sign in to comment.