Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
hello world AOP logger aspect
class LoggerAspect {
methodNamePattern: /^getNameByISBN$/,
classNamePattern: /^BookCollection$/
afterGetNameByISBN(meta) {
let result = meta.method.result;`Retrieving ${result.isbn} - ${} has been succeed`);
class BookCollection {
getNameByISBN(id, article) {
return this.get({
isbn: isbn
}, {
cache: true,
onSuccess: 'name'
onFail: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.