Skip to content

Instantly share code, notes, and snippets.

@SebastianHGonzalez
Last active January 2, 2019 17:53
Show Gist options
  • Save SebastianHGonzalez/3c1e11d912b7d8161717fbd95e24b66a to your computer and use it in GitHub Desktop.
Save SebastianHGonzalez/3c1e11d912b7d8161717fbd95e24b66a to your computer and use it in GitHub Desktop.
desired joinPoint interface
const personGreetingPC = new PointCut({class: Person, methodName: "greet"});
jhon.greet();
// <- "Hello jhon"
personGreetingPC.addAspect(loggerAspect);
jhon.greet();
// logging
// <- "Hello jhon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment