Skip to content

Instantly share code, notes, and snippets.

@felixbarny
Created October 17, 2013 14:54
Show Gist options
  • Save felixbarny/7026369 to your computer and use it in GitHub Desktop.
Save felixbarny/7026369 to your computer and use it in GitHub Desktop.
AspectJ disable join point
pointcut interceptionLocation(): executionOfSomethingInteresting() &&
if(InterceptorFramework.anythingSwitchedOnAnywhere);
Object around(): interceptionLocation() {
if (!InterceptorFramework.anythingToDoHere(thisJoinPointStaticPart)) {
return proceed();
}
// do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment