@ SuppressWarnings ( "unchecked" ) public static < T > T getAnnotationValue ( AnnotationMetadata importingClassMetadata , Class annotationClass , String name , T defaultValue ) { Map < String , Object > attributes = importingClassMetadata . getAnnotationAttributes ( annotationClass . getName ( ) ) ; return attributes != null && attributes . containsKey ( name ) ? ( T ) attributes . get ( name ) : defaultValue ; }
Get annotation method value .