Package jodd.proxetta.pointcuts
Class MethodWithAnnotationPointcut
- java.lang.Object
-
- jodd.proxetta.pointcuts.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(MethodInfo methodInfo)
Returnstrue
if method should be wrapped with the proxy.static MethodWithAnnotationPointcut
of(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jodd.proxetta.ProxyPointcut
and, or
-
-
-
-
Method Detail
-
of
public static MethodWithAnnotationPointcut of(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
-
apply
public boolean apply(MethodInfo methodInfo)
Returnstrue
if method should be wrapped with the proxy. Returnsfalse
if method should not be wrapped.- Specified by:
apply
in interfaceProxyPointcut
-
-