类 AnnotationUtils


  • public abstract class AnnotationUtils
    extends 
    Annotation Utilities Class
    从以下版本开始:
    2.5.11
    另请参阅:
    AnnotationUtils
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <A extends >
      <,​<A>>
       method, <A> annotationClass)
      Find specified type maps from
      static <,​>  annotation, boolean ignoreDefaultValue, ... ignoreAttributeNames)
      Get the attributes
      static <,​>  annotation, org.springframework.core.env.PropertyResolver propertyResolver, boolean ignoreDefaultValue, ... ignoreAttributeNames)
      Get the attributes
      static <A extends >
      boolean
       method, <A> annotationClass)
      Is specified present on 's declaring class or parameters or itself.
      static resolveInterfaceName​(Reference reference, <?> defaultInterfaceClass)  
      static resolveInterfaceName​(Service service, <?> defaultInterfaceClass)  
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 构造器详细资料

      • AnnotationUtils

        public AnnotationUtils()
    • 方法详细资料

      • resolveInterfaceName

        public static  resolveInterfaceName​(Service service,
                                                  <?> defaultInterfaceClass)
                                           throws 
        抛出:
      • resolveInterfaceName

        public static  resolveInterfaceName​(Reference reference,
                                                  <?> defaultInterfaceClass)
                                           throws 
        抛出:
      • isPresent

        public static <A extends > boolean isPresent​( method,
                                                               <A> annotationClass)
        Is specified present on 's declaring class or parameters or itself.
        类型参数:
        A - type
        参数:
        method -
        annotationClass - type
        返回:
        If present , return true , or false
        从以下版本开始:
        2.6.6
      • findAnnotations

        public static <A extends > <,​<A>> findAnnotations​( method,
                                                                                            <A> annotationClass)
        Find specified type maps from
        类型参数:
        A - type
        参数:
        method -
        annotationClass - type
        返回:
        type maps , the as key , the list of as value. If was annotated on 's parameters , the associated list may contain multiple elements.
        从以下版本开始:
        2.6.6
      • getAttributes

        public static <,​> getAttributes​( annotation,
                                                             boolean ignoreDefaultValue,
                                                             ... ignoreAttributeNames)
        Get the attributes
        参数:
        annotation - specified
        ignoreDefaultValue - whether ignore default value or not
        ignoreAttributeNames - the attribute names of annotation should be ignored
        返回:
        non-null
        从以下版本开始:
        2.6.6
      • getAttributes

        public static <,​> getAttributes​( annotation,
                                                             org.springframework.core.env.PropertyResolver propertyResolver,
                                                             boolean ignoreDefaultValue,
                                                             ... ignoreAttributeNames)
        Get the attributes
        参数:
        annotation - specified
        propertyResolver - PropertyResolver instance, e.g Environment
        ignoreDefaultValue - whether ignore default value or not
        ignoreAttributeNames - the attribute names of annotation should be ignored
        返回:
        non-null
        从以下版本开始:
        2.6.6