Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » support » annotation » [javadoc | source]
org.springframework.aop.support.annotation
public class: AnnotationMatchingPointcut [javadoc | source]
java.lang.Object
   org.springframework.aop.support.annotation.AnnotationMatchingPointcut

All Implemented Interfaces:
    Pointcut

Simple Pointcut that looks for a specific Java 5 annotation being present on a class or method .
Constructor:
 public AnnotationMatchingPointcut(Class classAnnotationType) 
    Create a new AnnotationMatchingPointcut for the given annotation type.
    Parameters:
    classAnnotationType - the annotation type to look for at the class level
 public AnnotationMatchingPointcut(Class classAnnotationType,
    boolean checkInherited) 
    Create a new AnnotationMatchingPointcut for the given annotation type.
    Parameters:
    classAnnotationType - the annotation type to look for at the class level
    checkInherited - 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 AnnotationMatchingPointcut(Class classAnnotationType,
    Class methodAnnotationType) 
    Create a new AnnotationMatchingPointcut for the given annotation type.
    Parameters:
    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)
Method from org.springframework.aop.support.annotation.AnnotationMatchingPointcut Summary:
forClassAnnotation,   forMethodAnnotation,   getClassFilter,   getMethodMatcher
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.support.annotation.AnnotationMatchingPointcut Detail:
 public static AnnotationMatchingPointcut forClassAnnotation(Class annotationType) 
    Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the class level.
 public static AnnotationMatchingPointcut forMethodAnnotation(Class annotationType) 
    Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the method level.
 public ClassFilter getClassFilter() 
 public MethodMatcher getMethodMatcher()