Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java 9 Dependency Injection

You're reading from   Java 9 Dependency Injection Write loosely coupled code with Spring 5 and Guice

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781788296250
Length 246 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Nilang Patel Nilang Patel
Author Profile Icon Nilang Patel
Nilang Patel
Krunal Patel Krunal Patel
Author Profile Icon Krunal Patel
Krunal Patel
Arrow right icon
View More author details
Toc

Spring AOP

Spring AOP is purely developed in Java. It doesn't require us to alter or control the class loader hierarchy. Because of this adaptability, you can utilize Spring AOP for a servlet container or application server. At present, Spring AOP only supports applying Advice at method level. In other words, method-level join-points are supported in Spring AOP

Spring supports AOP in conjunction with its IoC capabilities. You can define aspects with normal bean definition, while weaving them with AOP specific configuration. In other words, IoC is used to define aspects, and AOP is used to weave them to other objects. Spring uses both of them to solve common problems. This is how Spring AOP differs from other AOP frameworks.

Spring AOP is a proxy-based framework, and supports runtime weaving of objects. It can be used through either XML-based or AspectJ annotation-based configuration...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image