public aspect AnnotatedParentPointcutAspect {//introducing empty marker interfacedeclare parents : (@MyAnnotation *) implements TrackedParentMarker;public pointcut p1() : execution(* TrackedParentMarker+.*(..));before(): p1(){ System.out.println("Crosscutted method: " +thisJoinPointStaticPart.getSignature().getDeclaringTypeName() +"." +thisJoinPointStaticPart.getSignature().getName());}}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)