ProxyPointcut#apply()
that should return true
if target method is a pointcut and if proxy should be applied on it. Since pointcut applying is done in pure Java, user may define pointcuts in various proprietary ways.@Log
.ProxyPointcut
definitions using and()
and or()
, for example:MethodInfo
argument provides various information about the target method: class name and signature, method name, number of arguments, access flag, return type... It also returns ClassInfo
and AnnotationInfo
: additional class and annotation information. All this information may be use to define on which methods to apply a proxy. And since all this information is stored as simple types and Strings, pointcut definition becomes easy, but powerful - all in plan Java.Object
. Final methods are ignored, since they can't be overridden. Moreover, only public methods of superclasses are available for proxyfication if not overridden. {: .attn}