Aspects are used to implement the Cross Cutting Concerns like logging, transaction management etc.,
Application code is separated from Cross Cutting concerns in the form of aspects that define Advice.
Related Articles
In general, there are two forms of advices.
a. Around advice: decorates a method or class
b. Introduction Advice - introduces new behaviour to a class.
Unlike other AOP solutions, Micronaut do not use reflections, which slows application performance, makes debugging harder and increases memory consumption. Micronaut provides a simple compile-time AOP API that does not use reflection.
Previous Next HomeThis post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here