public class MethodWithAnnotationPointcut extends java.lang.Object implements ProxyPointcut
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] |
annotationClasses |
| Constructor and Description |
|---|
MethodWithAnnotationPointcut(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
Defines set of annotations we are looking for.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(MethodInfo methodInfo)
Returns
true if method should be wrapped with the proxy. |
static MethodWithAnnotationPointcut |
of(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, orprotected final java.lang.Class<? extends java.lang.annotation.Annotation>[] annotationClasses
public MethodWithAnnotationPointcut(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
public static MethodWithAnnotationPointcut of(java.lang.Class<? extends java.lang.annotation.Annotation>... annotationClasses)
public boolean apply(MethodInfo methodInfo)
true if method should be wrapped with the proxy.
Returns false if method should not be wrapped.apply in interface ProxyPointcutCopyright © 2003-present Jodd Team