Example usage for org.springframework.core.annotation AnnotationAttributes AnnotationAttributes

List of usage examples for org.springframework.core.annotation AnnotationAttributes AnnotationAttributes

Introduction

In this page you can find the example usage for org.springframework.core.annotation AnnotationAttributes AnnotationAttributes.

Prototype

public AnnotationAttributes() 

Source Link

Document

Create a new, empty AnnotationAttributes instance.

Usage

From source file:org.springframework.core.type.classreading.AbstractRecursiveAnnotationVisitor.java

public AnnotationVisitor visitAnnotation(String attributeName, String asmTypeDescriptor) {
    String annotationType = Type.getType(asmTypeDescriptor).getClassName();
    AnnotationAttributes nestedAttributes = new AnnotationAttributes();
    this.attributes.put(attributeName, nestedAttributes);
    return new RecursiveAnnotationAttributesVisitor(annotationType, nestedAttributes, this.classLoader);
}

From source file:org.springframework.core.type.classreading.AbstractRecursiveAnnotationVisitor.java

@Override
public AnnotationVisitor visitAnnotation(String attributeName, String asmTypeDescriptor) {
    String annotationType = Type.getType(asmTypeDescriptor).getClassName();
    AnnotationAttributes nestedAttributes = new AnnotationAttributes();
    this.allNestedAttributes.add(nestedAttributes);
    return new RecursiveAnnotationAttributesVisitor(annotationType, nestedAttributes, this.classLoader);
}

From source file:org.springframework.core.type.classreading.AbstractRecursiveAnnotationVisitor.java

public AnnotationAttributesReadingVisitor(String annotationType,
        Map<String, AnnotationAttributes> attributesMap, Map<String, Set<String>> metaAnnotationMap,
        ClassLoader classLoader) {

    super(annotationType, new AnnotationAttributes(), classLoader);
    this.annotationType = annotationType;
    this.attributesMap = attributesMap;
    this.metaAnnotationMap = metaAnnotationMap;
}