Class MethodWithAnnotationPointcut

  • All Implemented Interfaces:
    ProxyPointcut

    public class MethodWithAnnotationPointcut
    extends java.lang.Object
    implements ProxyPointcut
    Pointcut on a method with one of given annotations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<? extends java.lang.annotation.Annotation>[] annotationClasses  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodWithAnnotationPointcut​(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
      Defines set of annotations we are looking for.
    • Field Detail

      • annotationClasses

        protected final java.lang.Class<? extends java.lang.annotation.Annotation>[] annotationClasses
    • Constructor Detail

      • MethodWithAnnotationPointcut

        public MethodWithAnnotationPointcut​(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
        Defines set of annotations we are looking for.
    • Method Detail

      • apply

        public boolean apply​(MethodInfo methodInfo)
        Returns true if method should be wrapped with the proxy. Returns false if method should not be wrapped.
        Specified by:
        apply in interface ProxyPointcut