From 8c02cd8465ef41fbbbdca35abe3cf8195279d8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraci=20Paix=C3=A3o=20Kr=C3=B6hling?= Date: Wed, 19 Mar 2014 17:02:04 +0100 Subject: [PATCH] GTNPORTAL-3426 - Revert change to the CDI extension processor --- .../jboss/as7/deployment/CdiContextExtensionProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/jboss-as7/extension/src/main/java/org/gatein/integration/jboss/as7/deployment/CdiContextExtensionProcessor.java b/packaging/jboss-as7/extension/src/main/java/org/gatein/integration/jboss/as7/deployment/CdiContextExtensionProcessor.java index 1ee935205..426c58a63 100644 --- a/packaging/jboss-as7/extension/src/main/java/org/gatein/integration/jboss/as7/deployment/CdiContextExtensionProcessor.java +++ b/packaging/jboss-as7/extension/src/main/java/org/gatein/integration/jboss/as7/deployment/CdiContextExtensionProcessor.java @@ -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; @@ -48,7 +49,7 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro Metadata metadata = new MetadataImpl(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 {