@Override public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final CompositeIndex index = deploymentUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX); for (final CdiAnnotations annotation : CdiAnnotations.values()) { if (!index.getAnnotations(annotation.getDotName()).isEmpty()) { CdiAnnotationMarker.mark(deploymentUnit); return; } } }
@Override public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final CompositeIndex index = deploymentUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX); for (final CdiAnnotations annotation : CdiAnnotations.values()) { if (!index.getAnnotations(annotation.getDotName()).isEmpty()) { CdiAnnotationMarker.mark(deploymentUnit); return; } } }