Search in sources :

Example 6 with MergedAnnotations

use of org.springframework.core.annotation.MergedAnnotations in project spring-framework by spring-projects.

the class SimpleMethodMetadataReadingVisitor method visitEnd.

@Override
public void visitEnd() {
    String returnTypeName = Type.getReturnType(this.descriptor).getClassName();
    MergedAnnotations annotations = MergedAnnotations.of(this.annotations);
    SimpleMethodMetadata metadata = new SimpleMethodMetadata(this.methodName, this.access, this.declaringClassName, returnTypeName, getSource(), annotations);
    this.consumer.accept(metadata);
}
Also used : MergedAnnotations(org.springframework.core.annotation.MergedAnnotations)

Example 7 with MergedAnnotations

use of org.springframework.core.annotation.MergedAnnotations in project spring-framework by spring-projects.

the class SimpleAnnotationMetadataReadingVisitor method visitEnd.

@Override
public void visitEnd() {
    MergedAnnotations annotations = MergedAnnotations.of(this.annotations);
    this.metadata = new SimpleAnnotationMetadata(this.className, this.access, this.enclosingClassName, this.superClassName, this.independentInnerClass, this.interfaceNames, this.memberClassNames, this.declaredMethods, annotations);
}
Also used : MergedAnnotations(org.springframework.core.annotation.MergedAnnotations)

Aggregations

MergedAnnotations (org.springframework.core.annotation.MergedAnnotations)7 Timed (io.micrometer.core.annotation.Timed)1 URLClassLoader (java.net.URLClassLoader)1 ExposableEndpoint (org.springframework.boot.actuate.endpoint.ExposableEndpoint)1 Endpoint (org.springframework.boot.actuate.endpoint.annotation.Endpoint)1 EndpointExtension (org.springframework.boot.actuate.endpoint.annotation.EndpointExtension)1