org.camunda.bpm.engine.spring.components.aop.util
Class MetaAnnotationMatchingPointcut

java.lang.Object
  extended by org.camunda.bpm.engine.spring.components.aop.util.MetaAnnotationMatchingPointcut
All Implemented Interfaces:
org.springframework.aop.Pointcut

public class MetaAnnotationMatchingPointcut
extends Object
implements org.springframework.aop.Pointcut

this code is taken almost (99.99%) verbatim from the Spring Integration project's source code where it's a static private inner class.

Author:
Mark Fisher

Field Summary
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Constructor Summary
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.
 
Method Summary
 org.springframework.aop.ClassFilter getClassFilter()
           
 org.springframework.aop.MethodMatcher getMethodMatcher()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaAnnotationMatchingPointcut

public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType,
                                      boolean checkInherited)
Create a new MetaAnnotationMatchingPointcut 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)

MetaAnnotationMatchingPointcut

public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType,
                                      Class<? extends Annotation> methodAnnotationType)
Create a new MetaAnnotationMatchingPointcut 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 Detail

getClassFilter

public org.springframework.aop.ClassFilter getClassFilter()
Specified by:
getClassFilter in interface org.springframework.aop.Pointcut

getMethodMatcher

public org.springframework.aop.MethodMatcher getMethodMatcher()
Specified by:
getMethodMatcher in interface org.springframework.aop.Pointcut


Copyright © 2015 camunda services GmbH. All rights reserved.