Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Micronaut: Working with aspects

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.

 

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                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

Micronaut: Working with aspects

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×