类 AnnotationUtils
-
- com.alibaba.dubbo.config.spring.util.AnnotationUtils
-
public abstract class AnnotationUtils extends
Annotation Utilities Class- 从以下版本开始:
- 2.5.11
- 另请参阅:
AnnotationUtils
-
-
构造器概要
构造器 构造器 说明 AnnotationUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <A extends >
<,<A>>method, <A> annotationClass)
Find specified type maps fromstatic <,>
annotation, boolean ignoreDefaultValue, ... ignoreAttributeNames)
Get the attributesstatic <,>
annotation, org.springframework.core.env.PropertyResolver propertyResolver, boolean ignoreDefaultValue, ... ignoreAttributeNames)
Get the attributesstatic <A extends >
booleanmethod, <A> annotationClass)
Is specified present on 's declaring class or parameters or itself.static
resolveInterfaceName(Reference reference, <?> defaultInterfaceClass)
static
resolveInterfaceName(Service service, <?> defaultInterfaceClass)
-
-
-
方法详细资料
-
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
, orfalse
- 从以下版本开始:
- 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
- specifiedignoreDefaultValue
- whether ignore default value or notignoreAttributeNames
- 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
- specifiedpropertyResolver
-PropertyResolver
instance, e.gEnvironment
ignoreDefaultValue
- whether ignore default value or notignoreAttributeNames
- the attribute names of annotation should be ignored- 返回:
- non-null
- 从以下版本开始:
- 2.6.6
-
-