Search in sources :

Example 1 with CdiAnnotations

use of org.jboss.as.weld.CdiAnnotations in project wildfly by wildfly.

the class CdiAnnotationProcessor method deploy.

@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;
        }
    }
}
Also used : CdiAnnotations(org.jboss.as.weld.CdiAnnotations) CompositeIndex(org.jboss.as.server.deployment.annotation.CompositeIndex) DeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit)

Aggregations

DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)1 CompositeIndex (org.jboss.as.server.deployment.annotation.CompositeIndex)1 CdiAnnotations (org.jboss.as.weld.CdiAnnotations)1