类 AnnotationMethodMatcher
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.StaticMethodMatcher
infra.aop.support.annotation.AnnotationMethodMatcher
- 所有已实现的接口:
MethodMatcher,infra.core.Ordered
Simple MethodMatcher that looks for a specific Java 5 annotation
being present on a method (checking both the method on the invoked
interface, if any, and the corresponding method on the target class).
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, Sam Brannen, TODAY 2021/2/2 13:00
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.MethodMatcher
MethodMatcher.ClassFilterAwareUnionIntroductionAwareMethodMatcher, MethodMatcher.ClassFilterAwareUnionMethodMatcher, MethodMatcher.IntersectionIntroductionAwareMethodMatcher, MethodMatcher.IntersectionMethodMatcher, MethodMatcher.NegateMethodMatcher, MethodMatcher.UnionIntroductionAwareMethodMatcher, MethodMatcher.UnionMethodMatcher -
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.MethodMatcher
TRUE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明AnnotationMethodMatcher(Class<? extends Annotation> annotationType) Create a new AnnotationClassFilter for the given annotation type.AnnotationMethodMatcher(Class<? extends Annotation> annotationType, boolean checkInherited) Create a new AnnotationClassFilter for the given annotation type. -
方法概要
从类继承的方法 infra.aop.support.StaticMethodMatcher
isRuntime, matches从类继承的方法 infra.core.OrderedSupport
getOrder, setOrder
-
字段详细资料
-
annotationType
-
checkInherited
private final boolean checkInherited
-
-
构造器详细资料
-
AnnotationMethodMatcher
Create a new AnnotationClassFilter for the given annotation type.- 参数:
annotationType- the annotation type to look for
-
AnnotationMethodMatcher
Create a new AnnotationClassFilter for the given annotation type.- 参数:
annotationType- the annotation type to look forcheckInherited- whether to also check the superclasses and interfaces as well as meta-annotations for the annotation type (i.e. whether to useAnnotatedElementUtils.hasAnnotation(AnnotatedElement, Class)semantics instead of standard JavaAccessibleObject.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>))
-
-
方法详细资料
-
matches
从接口复制的说明:MethodMatcherChecking whether the given method matches.- 参数:
method- the candidate methodtargetClass- the target class- 返回:
- whether or not this method matches on application startup.
-
matchesMethod
-
equals
-
hashCode
public int hashCode() -
toString
-