public class MetaAnnotationMatchingPointcut extends Object implements org.springframework.aop.Pointcut
Constructor and Description |
---|
MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType,
boolean checkInherited)
Create a new MetaAnnotationMatchingPointcut for the given annotation type.
|
MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType,
Class<? extends Annotation> methodAnnotationType)
Create a new MetaAnnotationMatchingPointcut for the given annotation type.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.aop.ClassFilter |
getClassFilter() |
org.springframework.aop.MethodMatcher |
getMethodMatcher() |
public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited)
classAnnotationType
- the annotation type to look for at the class levelcheckInherited
- whether to explicitly check the superclasses and
interfaces for the annotation type as well (even if the annotation type
is not marked as inherited itself)public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType)
classAnnotationType
- the annotation type to look for at the class level
(can be null
)methodAnnotationType
- the annotation type to look for at the method level
(can be null
)public org.springframework.aop.ClassFilter getClassFilter()
getClassFilter
in interface org.springframework.aop.Pointcut
public org.springframework.aop.MethodMatcher getMethodMatcher()
getMethodMatcher
in interface org.springframework.aop.Pointcut
Copyright © 2018. All rights reserved.