Reputation: 4259
Is it possible to parametrize an Aspect? Right now I have an @Integration Aspect and my pointcuts are like:
@AfterReturning(pointcut = "@annotation(Integration)",returning = "result")
So, wherever it finds @Integration, it will call this method. Can I implement something like this:
@Integration("new") or @Integration("deleted"),
to avoid to create new annotation for every case?
Also, if this is possible, how to access this provided value ("new" or "deleted").
Thanks in advance :)
Upvotes: 1
Views: 134
Reputation: 4653
Upvotes: 1