Spring Tutorial 07 - Dependency Injection using constructor way ( Hands on using Eclipse IDE )

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Simply Superb Delivering of concepts...Well Understandable for a begginner...Good Job

lakshmiprathyushadarlanka
Автор

Awesome Video Sir...Your Teaching Style is a lot Sir for making such Videos. :D

jitendrakewat
Автор

I am loving your series. Easy explained!!

sherif_a
Автор

your presentation is easy to understand

zahirulislam
Автор

VERY VERY good job ! greatings from Tunisia

dalitlili
Автор

Great Job, because you a great a man, Thank you so much !!

othmanesaadane
Автор

Thank you so much for such a wonderful explanation.

arpitamandal
Автор

Very easily explained. Thank you very much.!!

NaveenKumar-fuir
Автор

Great videos very very usefull to me Thanks

chelpurirajashekar
Автор

realy helpful video for me and my friend great move

monitgupta
Автор

Very good tutorials.
I think it will be more clear if method prepareHotDrink in Restaurant class is renamed with prepareDrink (or something not to match prepareHotDrink from the tea class).
This way is more clear which methods we call in the Test class.

Many thanks again!

package com.spring;

public class Restaurant {

IHotDrink hotDrink;

Restaurant(IHotDrink hotDrink){
this.hotDrink = hotDrink;
}

public void prepareDrink(){
hotDrink.prepareHotDrink();
}
}

plamentassev
Автор

Great tutorial. I have a question. What if I have 2 constructors in the same bean? One with 2 arguments and the other one with one argument. how do i pass value to both constructors in the bean conf file?

karthee_k
Автор

Superb Video !! Love your spring series...in this tutorial we are also creating object for interface IHotDrink inside the Restaurant class. After sometime if i want to change the name of interface then i must change in restaurant class. then what is use of spring here ?? Sorry If i asked silly question !! i am new in spring ..Thanx man

ashishgupta-bwpt
Автор

I am little confused here.. I think we are not suppose to instantiate Interfaces. But here in this Vedio u are instantiate the IHotDrink interface and then using the dot operator on hotDrink.prepareHotdrink. Please explain me. Thanks!!

anandsinghthakur
Автор

Really well explained but why not in 1080p :(

GhassenKhalilAti
Автор

Nice Job! can you do some tutorials on JSF?

flaviosousa
Автор

Sir you don't think that dependency is still exist because the creation of objects at run time depends upon the bean that we we providing in xml. if we have two class like tea and coffee, then what will happen ???? if we call a.makeCoffe()???

AliHussain-bwdr
Автор

Why did you use interface obj to invoke the method of Tea Class? instead of creating a Tea class obj and invoke its methods

leii
Автор

In restaurant class, function name is prepareHotDrink which is same as the function in Interface ... Is this necessary to give the same name as per the interface or we can give any other name for the function in Restaurant Class ?

chetan
Автор

hey would u explain me the flow of this application. Means as u said at runtime tea class object will be created first then the restaurant class. Explain me this and the springconfig file.

kunaljamdade
welcome to shbcf.ru