What is Dependency Injection? | Why | Spring
Ғылым және технология
Spring and Microservices Live Course : bit.ly/springmslive
Coupon: TELUSKO25 (25% Discount)
Industry-Ready Java Spring Microservices Developer Live : bit.ly/JavaMS2
Complete Java Developer Course : bit.ly/Comp-Java-Dev-2
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
Discord : / discord
Spring Dependency Injection.
Practical : goo.gl/VZZnDT
In software engineering, dependency injection is a technique whereby one object (or static method) supplies the dependencies of another object. A dependency is an object that can be used (a service). An injection is the passing of a dependency to a dependent object (a client) that would use it. The service is made part of the client's state.[1] Passing the service to the client, rather than allowing a client to build or find the service, is the fundamental requirement of the pattern.
-wikipedia
Dependency Injection is a design pattern.
In this video we will see :
- What is Dependency Injection
- Why it is so famous
- An example of Dependency Injection explaining the process.
- Object dependency
- Loose Coupling
- Tight Coupling
- Dpendency injectction container
- Spring container
- Spring Boot
- @Component
- @Autowired
- Testing
- Mock Object
- Maintenance
Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Subscribe to our other channel:
Navin Reddy : kzread.info/dron/xmk.html...
Telusko Hindi :
kzread.info/dron/itz.html...
#spring #Dependencies
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
www.telusko.com/contactus
Пікірлер: 276
You're not just a programmer but also an awesome story teller. When asked about dependency injection people make it so complex that you start scratching your head.... But you explained like it was a piece of cake. 🙏
Big brother, you speak so beautifully your words directly injects into my brain without an error at all. Everything becomes so comprehensible when you explain it.
Sir, from the beginning of my programming you have been with me. Thank you so much for your instructions !
Really good explanation I covered Software Engineering recently + have been using Spring and Angular and never actually realised about this loosely coupled idea. Nice philosophy behind how project should be managed. Also the part of testing that loose coupling makes it easier to test, never realised that :-D ...... Great explanation a bit of practical would be plus ...
I have watched more of your videos to learn SWE topics than I can count. You have been instrumental in allowing me to understand these concepts intuitively. Big thanks!
One of the best KZreadr in teaching. Seriously I learned a lot from this channel
My day starts with Telusko
this is the best explanation about dependency injection in Spring ive heard so far. Simple but I can understand it so well! Thank you!
Best tutorial on dependency injection. Finally, I got what it really is.
At it's core, dependency injection centralizes the creation of concrete objects that your client (meaning your code) uses and can use in many places. This provides many benefits, first you are able to easily switch out the implementation, you are able to easily test the implementation, and you are able to wrap or manipulate how you want it to instantiate. Whether it be wrapping authentication around it or adding pre and post processing, or auditing/logging to it and you can do this retroactively in the entire system in a very easy manner.
Man, 5 years old video and still the best explanation about dependency explanation. This guy truly knows the subject, and he knows which example to pick to explain what topic. He has the teaching spirit in him. Hands down the best youtube channel. whenever, i have a doubt i come here, dang the concepts are much clear. Kudos to you brother.
Fantastic explanation that takes away the confusion. We tend to use such big words when a simple explanation is the best way. I have been doing this concept since 1975 and it always amuses me when the industry comes up with a new concept that really is just doing good programming with a different word. Great job!
Thanks for a very thorough and simple explanation. Your tutorials are addictive. God bless you.
thanks for using classes on screen. got some idea of the concept.
Sir i'm a student of Cdac and even teachers here, also dont explain concepts like this. Thankyou sir❤
Im 7+ yr experience in java and spring and i always screwed up the defination of dependency injection in the interviews 🤣
@dibyaranjanparida6666
4 ай бұрын
Hlo bhai
Sir You're a Greate Teacher.
Excellent explanation based on real practical example ! Thank you for sharing this valuable knowledge. Vladan Ulardzic
This is the first time i understood dependency injection and the jargons related to it! Thanks.
Great Navin Sir you are always there to help me ...no words for this kind of explanation
ive been wandering around for days trying to find a proper explanation for DI...and although im focussed on DI in Dart this video was the BEST to understand what it means...thank you very much sir
now i understand dependecy injection. what a great examples you use sir. easily understandable even for layman
You are the God of Java dude.. I was searching this explanation for a whole week and i got that within 8 mins from your video. Thanks a lot.
This guy is teaching me everything...i am not even browsing youtube. Once i find this guy i go ahead...and it always work. Best teacher
man, the passion and joy of teaching in this guy's eyes is sight to behold...
Marvelous teaching style. Superb, Marvelous, Mind blowing.
Comprehensive and relatable. Nice analogies to explain the concept. Thanks Navin !
I saw so many video's and article about DI but still somewhere i'm confused but you solve it using very simple way...Thanks
Thank you for this clarification, I understood it completely!
This guy, men you are a good teacher. I don't know if you know David J. Malan from Havard? You and that guy are my best teachers of all time. Good job!
@hirenvadher2610
4 жыл бұрын
I know David
I am thankful to you, I remember after graduation your videos were the source of preparation material for me for interviews and I landed a job. Respect from Pakistan.
As always, I understood the concept. Thank you!
How great teacher you are.. Lots of love and respect sir.. Great topics.. we need practical implementations of all these concepts in projects..
@chinmaydas4053
6 жыл бұрын
Thanks for reference.. I have watched the video.. greatly explained sir..
@chinmaydas4053
6 жыл бұрын
Sir i'm confused wheather i should learn new java10 features like var, garbage collectors etc or it's good or bad and future updates of java bcz oracle now saying many things... Please sir.. make a complete video on all these topics.. would be helpful..
this is awesome...!♥️God bless you...!🙌🏻
A simple and an excellent explanation. Thank you very much !
Very good examplaination sir about dependency injection... thanks for explaining in such easy way and you have given a very good example which make us to understand easily amd better way.
Such an enjoyable video. Thank you sir :)
Such a good explanation ! Thanks!
Thank you, Sir. You really made it simple to understand :)
Thank you so much Naveen Reddy ! I've some experience, and even I found this very useful. So far, I've used @Autowire n number of times to inject @Repositories in my @Services and to inject @Services in my @Controllers. But after watching your video, it became crystal clear, why!! The example of Hitachi and Samsung Harddrives implementing Harddrive interface and Laptop using loose coupling by means of someone else injecting the dependencies - @Autowire and @Component - is a truly great example, and it has helped me grasp this concept, I'd like to believe, concretely. Earlier I knew how to use it, but wouldn't be able to explain so lucidly to some one if they asked WHY. I'd just say do like this, as it is industry standard :D :) Similarly, I knew about JUnit testing with Mockito and mocking certain classes, etc. But didn't consciously realize that due to loose coupling only mocking is made possible. I never worried about how mocking is made possible. Now I know. :) \/, So, thanks a lot. May god bless you ! You now have a new subscriber.
You just explained the concept nicely manner. Thanks for explaining! finally got it.
The knowledge u share to us is priceless
Quite Impressssive , i understand everything in just 8 min thanks
Simplest and best explanation of DI. Thank you!!
Things are easy to understand but difficult to explain, thank you so much Sensei.
This is an excellent video, thanks for taking the time to make it! And for the people commenting that he needs to provide some sort of implementation, he posted a link to that in the description: @t
Very nice videos. The way you have taught spring mvc was awewsome. May I request you please upload the spring boot videos like that ie with creating a basic program.
You have got very good teacher skill. Awesome 👏 . Very clear and concise
You are a great teacher Naveen garu, than you for the video series..
Very thorough, simple and informartive explanation!
Marvelous sir ,I was in need of this concept and you made it very clear thankyou ..please make a video on AOP
Learned a lot. Thank you for putting this up.
love you man.. awesome explanation..
Sir, i want to learn Spring, which playlist is suitable for me to learn from scratch? Spring Boot or Spring MVC or any other playlist??
Clarity of DI is 🔥 by far the best video ❤️
This is a really great explanation.
Extremely grateful for this explanation sir!
Awesome. So clear and simple.
Great explanation, thank you
Awesome! Well done on this tutorial.
You have improved lot in the area of content delivery.. keep going on
Yeah, now I understand .. what is dependency injection, why it is required, how it works ... this man is too good #telusko
Great explanation!! Really recommended. Thank you :D
such a simple explanation..it was awesome Sir
Fantastic explanation! Thanks! Could anybody help with the difference between Dependency Inversion and dependency injection??
I thoroughly enjoy the way you explain things; you are undoubtedly talented at it. Personally, I highly value and appreciate the service you provide.
Such an wonderful lecture!!!!!!
I actually enjoyed this.Man O man you are a gem
its a great explaination od Dependency Injection sir
the best explanation I found on the internet................
No words.... only will say "CLASSY "!!!!
very intuitive , thanks!
Wow, now that's a brilliant explanation 💯💯
This was a beautiful way to explain it
Great Tutorial. Very helpful
Hey ! You have it so simple.Thanks for this :)
Damn!!! I have some feelings that KZread sends you my search activities, I've been just searching this since yesterday and you uploaded this now :| Thanks a lot anyway :D I love how easy and simple you try to explain everything, specially the last part(testing) made the most sense for me as a beginner.
@vitalnutrients744
5 жыл бұрын
Yes he's really helpful
Very useful and good explanation! Thank you!
Explained very well.. I like your teaching
Very Very clean explantion.. clean as in understandable tq
Great video, answers what and why of DI ...
excellent explanation!
The best teacher that i have ever seen , thanks a lot !!!!!!!
Hi Naveen, if it's the class SamsungHD implemented by HardDrive then which class will inject ? By the way you are already implemented HardDrive in HitachiHD class..
Sir plz continue spring classes
Really good explanation. Your example is very understandable.
Thanks for the real concept of dependency injection.
Great I knew we use this for loosely coupled but the way he told is very good.
One of the better Java channels :)
Great explanation!
Good explanation,thank you
Awesome explanation Really i enjoyed your teaching...👌👌
Thank you so much Naveen Reddy !
Made My Day ♥
Nicely Explained!!
This time I got your explanation for DI very very clear
Great Explanation
Super, bro. Thank you.
The example is awesome. Thank you
Wow man! Loved the way you explained :D