Skip to content

Commit

Permalink
WFLY-8697 BeansXmlProcessor does not cleanup up WeldAttachments.CLASS…
Browse files Browse the repository at this point in the history
…ES_RESOURCE_ROOT, ExplicitBeanArchiveMetadataContainer.ATTACHMENT_KEY on undeploy()
  • Loading branch information
rhusar committed May 6, 2017
1 parent 251d93e commit c3f6b50
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -135,8 +135,9 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
} }


@Override @Override
public void undeploy(DeploymentUnit context) { public void undeploy(DeploymentUnit deploymentUnit) {

deploymentUnit.removeAttachment(WeldAttachments.CLASSES_RESOURCE_ROOT);
deploymentUnit.removeAttachment(ExplicitBeanArchiveMetadataContainer.ATTACHMENT_KEY);
} }


private BeansXml parseBeansXml(VirtualFile beansXmlFile, PropertyReplacingBeansXmlParser parser, final DeploymentUnit deploymentUnit) throws DeploymentUnitProcessingException { private BeansXml parseBeansXml(VirtualFile beansXmlFile, PropertyReplacingBeansXmlParser parser, final DeploymentUnit deploymentUnit) throws DeploymentUnitProcessingException {
Expand Down

0 comments on commit c3f6b50

Please sign in to comment.