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

IoC Patterns and Best Practices

Now that you have reached this chapter, you should know what Dependency Injection (DI) is, why it's so important, how it's projected in recent versions of Java, and how to implement it with popular frameworks, such as Spring and Google Guice, with various scopes.

It's said that knowing something is not enough until it's applied with best methodologies and practices. Knowledge is power only when it's implemented in the right manner. An improper approach may create a big mess. 

The software industry is moving toward modularity. The concepts of DI and Inversion of Control (IoC) containers were created due to this, and this is why they are so popular today. Still, many developers don't know how to utilize DI to its full potential. 

In this chapter, we will explore the real strength of DI by learning the right...

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