Spring Tutorial - 2 - Dependency Injection & Inversion of Control without Spring

Spring Tutorial - 2 - Dependency Injection & Inversion of Control without Spring

Channel:
Subscribers:
32,299
Published on ● Video Link: https://www.youtube.com/watch?v=kzZnWVm0h98



Category:
Tutorial
Duration: 25:38
2,464 views
111


In this episode of the Spring series, I explain to you the concept of Dependency Injection and Inversion of Control and then show you how to do it in a Java Project. #SpringFramework #SpringTutorial #Java

Code: https://gitlab.com/kody-simpson/spring-framework/dependency-injection-and-inversion-of-control-without-spring
Resources:
- https://www.manning.com/books/dependency-injection?query=dependen
- https://www.javacodegeeks.com/2010/12/dependency-injection-manual-way.html#:~:text=%20Dependency%20Injection%20is%20a%20concept%20first%20and,Java%20application%2C%20we%20repeatedly%20encounter%20with%20two%20events%3A
- https://martinfowler.com/articles/injection.html

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've tried it and it's awesome! https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=kodysimpson&utm_content=description-only

Discord: https://rebrand.ly/discordlink
Become a Member: https://www.youtube.com/channel/UC_LtbK9pzAEI-4yVprLOcyA/join
Instagram: https://www.instagram.com/kody_a_simpson/
Twitter: https://twitter.com/kodysimp

0:00:00 - Intro
0:00:47 - What is a dependency?
0:02:45 - What is Dependency Injection?
0:05:16 - What is Inversion of Control?
0:06:45 - Manual Dependency Injection (without Spring framework)
0:09:51 - Tight coupling
0:11:18 - Loose coupling
0:14:21 - Example 1 (Constructor Injection)
0:17:38 - Example 2 (Using interface to support "swappability")
0:23:48 - Outro

More Videos coming soon.
Leave a comment for any future video suggestions.




Other Videos By Kody Simpson


2021-07-20found a ghost while editing a video - im scared
2021-07-17Java Tutorial - Packaging a Java Application into a JAR File using IntelliJ IDEA
2021-07-15Spigot Plugin Development - 69 - error
2021-07-13Spigot Plugin Development - 3 - Event Listeners in External Classes and Cancellable Events
2021-07-12doing nothing, playing valorant, maybe some coding after - trying to get bronze 3
2021-07-11Java Tutorial - instanceof Pattern Matching | JDK 16
2021-07-03Spigot Plugin Development - 2 - Event Listeners, Javadocs, and Players
2021-06-30Spring Tutorial - 4 - Constructor Injection with Annotations
2021-06-27Java Programming Live Stream | discord.gg/cortexdev
2021-06-26Spring Tutorial - 3 - Inversion of Control and Beans
2021-06-23Spring Tutorial - 2 - Dependency Injection & Inversion of Control without Spring
2021-06-22Working on my Discord Bot and failing miserably | http://discord.gg/cortexdev
2021-06-19Working on my Discord Bot | http://discord.gg/cortexdev
2021-06-17double vaxxed up 20 year old coding random stuff
2021-06-16Spring Tutorial - 1 - Creating a New Spring Boot Project with Initializr
2021-06-13How to Make a Spigot Minecraft Server with Java 16 [MC 1.17+]
2021-06-10Spigot Plugin Development - 67 - Command Manager from SimpAPI | SimpleBanking Plugin
2021-06-09Spigot Plugin Development - 66 - SimpAPI Introduction
2021-06-05Spigot Plugin Development - 1 - Your First Plugin
2021-06-03Java Tutorial Introduction Video
2021-06-02Spigot Plugin Development - 69 - JSON File Storage with SimpAPI & Gson



Tags:
programming tutorial