public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); PropertyReplacer propertyReplacer = EJBAnnotationPropertyReplacement.propertyReplacer(deploymentUnit); if (index == null || eeModuleDescription == null) { return; } final List<ClassAnnotationInformationFactory> factories = annotationInformationFactories(); for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index, propertyReplacer); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } afterAnnotationsProcessed(phaseContext, deploymentUnit); }
if (multiAnnotationDotName != null) { for (AnnotationInstance multiInstance : index.getAnnotations(multiAnnotationDotName)) { annotations.addAll(fromMultiAnnotation(multiInstance)); final Map<DotName, List<TargetAnnotation>> fieldLevel = new HashMap<DotName, List<TargetAnnotation>>(); for (TargetAnnotation instance : annotations) { final DotName targetClass = getAnnotationClass(instance.target()).name(); if (instance.target() instanceof ClassInfo) { List<TargetAnnotation> data = classLevel.get(targetClass); classData = new ArrayList<T>(classAnnotations.size()); for (TargetAnnotation instance : classAnnotations) { classData.add(fromAnnotation(instance.instance(), propertyReplacer)); fieldData.put(name, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance(), propertyReplacer)); methodData = new HashMap<MethodIdentifier, List<T>>(); for (TargetAnnotation instance : methodAnnotations) { final MethodIdentifier identifier = getMethodIdentifier(instance.target()); List<T> data = methodData.get(identifier); if (data == null) { methodData.put(identifier, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance(), propertyReplacer));
if (multiAnnotationDotName != null) { for (AnnotationInstance multiInstance : index.getAnnotations(multiAnnotationDotName)) { annotations.addAll(fromMultiAnnotation(multiInstance)); final Map<DotName, List<TargetAnnotation>> fieldLevel = new HashMap<DotName, List<TargetAnnotation>>(); for (TargetAnnotation instance : annotations) { final DotName targetClass = getAnnotationClass(instance.target()).name(); if (instance.target() instanceof ClassInfo) { List<TargetAnnotation> data = classLevel.get(targetClass); classData = new ArrayList<T>(classAnnotations.size()); for (TargetAnnotation instance : classAnnotations) { classData.add(fromAnnotation(instance.instance(), propertyReplacer)); fieldData.put(name, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance(), propertyReplacer)); methodData = new HashMap<MethodIdentifier, List<T>>(); for (TargetAnnotation instance : methodAnnotations) { final MethodIdentifier identifier = getMethodIdentifier(instance.target()); List<T> data = methodData.get(identifier); if (data == null) { methodData.put(identifier, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance(), propertyReplacer));
@SuppressWarnings({ "unchecked", "rawtypes" }) public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); if (index == null || eeModuleDescription == null) { return; } for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index, PropertyReplacers.noop()); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } }
if (multiAnnotationDotName != null) { for (AnnotationInstance multiInstance : index.getAnnotations(multiAnnotationDotName)) { annotations.addAll(fromMultiAnnotation(multiInstance)); final Map<DotName, List<TargetAnnotation>> fieldLevel = new HashMap<DotName, List<TargetAnnotation>>(); for (TargetAnnotation instance : annotations) { final DotName targetClass = getAnnotationClass(instance.target()).name(); if (instance.target() instanceof ClassInfo) { List<TargetAnnotation> data = classLevel.get(targetClass); classData = new ArrayList<T>(classAnnotations.size()); for (TargetAnnotation instance : classAnnotations) { classData.add(fromAnnotation(instance.instance(), propertyReplacer)); fieldData.put(name, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance(), propertyReplacer)); methodData = new HashMap<MethodIdentifier, List<T>>(); for (TargetAnnotation instance : methodAnnotations) { final MethodIdentifier identifier = getMethodIdentifier(instance.target()); List<T> data = methodData.get(identifier); if (data == null) { methodData.put(identifier, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance(), propertyReplacer));
@SuppressWarnings({ "unchecked", "rawtypes" }) public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); if (index == null || eeModuleDescription == null) { return; } for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index, PropertyReplacers.noop()); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } }
if (multiAnnotationDotName != null) { for (AnnotationInstance multiInstance : index.getAnnotations(multiAnnotationDotName)) { annotations.addAll(fromMultiAnnotation(multiInstance)); final Map<DotName, List<TargetAnnotation>> fieldLevel = new HashMap<DotName, List<TargetAnnotation>>(); for (TargetAnnotation instance : annotations) { final DotName targetClass = getAnnotationClass(instance.target()).name(); if (instance.target() instanceof ClassInfo) { List<TargetAnnotation> data = classLevel.get(targetClass); classData = new ArrayList<T>(classAnnotations.size()); for (TargetAnnotation instance : classAnnotations) { classData.add(fromAnnotation(instance.instance())); fieldData.put(name, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance())); methodData = new HashMap<MethodIdentifier, List<T>>(); for (TargetAnnotation instance : methodAnnotations) { final MethodIdentifier identifier = getMethodIdentifier(instance.target()); List<T> data = methodData.get(identifier); if (data == null) { methodData.put(identifier, data = new ArrayList<T>(1)); data.add(fromAnnotation(instance.instance()));
public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); if (index == null || eeModuleDescription == null) { return; } final List<ClassAnnotationInformationFactory> factories = annotationInformationFactories(); for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } afterAnnotationsProcessed(phaseContext, deploymentUnit); }
public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); PropertyReplacer propertyReplacer = EJBAnnotationPropertyReplacement.propertyReplacer(deploymentUnit); if (index == null || eeModuleDescription == null) { return; } final List<ClassAnnotationInformationFactory> factories = annotationInformationFactories(); for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index, propertyReplacer); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } afterAnnotationsProcessed(phaseContext, deploymentUnit); }
public final void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); final CompositeIndex index = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.COMPOSITE_ANNOTATION_INDEX); PropertyReplacer propertyReplacer = EJBAnnotationPropertyReplacement.propertyReplacer(deploymentUnit); if (index == null || eeModuleDescription == null) { return; } final List<ClassAnnotationInformationFactory> factories = annotationInformationFactories(); for (final ClassAnnotationInformationFactory factory : factories) { final Map<String, ClassAnnotationInformation<?, ?>> data = factory.createAnnotationInformation(index, propertyReplacer); for (Map.Entry<String, ClassAnnotationInformation<?, ?>> entry : data.entrySet()) { EEModuleClassDescription clazz = eeModuleDescription.addOrGetLocalClassDescription(entry.getKey()); clazz.addAnnotationInformation(entry.getValue()); } } afterAnnotationsProcessed(phaseContext, deploymentUnit); }