All language subtitles for 020 Lazy Initialization - Coding - Part 1_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Instructor: Alrighty, let's go ahead

and get started.

Just take care of our normal housekeeping

stopping all the apps and closing all the windows.

And let's just do a little copy paste

on this 05-primary.

And then we'll rename it as

06-lazy-initialization.

Now let's go ahead

and open this project up and IntelliJ.

What I'd like to do here is change the code bag

to using the qualifier annotation

and removing the primary annotation.

And we'll set the qualifier annotation here

to make use of the CricketCoach.

And we'll open up the TrackCoach implementation

and remove the @Primary annotation.

Now let's go ahead and run the application

just to make sure everything still works as desired.

Accessing this endpoint localhost:8080/dailyworkout,

and we're getting the CricketCoach workout

practice our fast bowling for 15 minutes.

Okay, this is great.

What I'd like to do here is add some diagnostics here

or add some print line statements to the constructors

just so we can see everyone being created

when the application starts up.

I'll just start here at the top with BaseballCoach.

And I'll add a no argument constructor here

for BaseballCoach.

And I'll add a system out print line here

to display the actual class name.

And I'll just copy this information

and I'll move over to CricketCoach,

and I'll paste in the information.

I'll update the constructor name - CricketCoach,

and then we have our existing code here

for printing out the actual class name.

Move over to TennisCoach.

Do more of the same -

well, actually, I can't paste that.

Let me swing back to CricketCoach.

Grab this constructor information, copy it,

swing back over to TennisCoach,

and now I can paste it.

And then update the actual constructor name accordingly.

And then more the same here for TrackCoach.

And I'll copy this print line statement

and I'll use that print line statement

in my demo controller.

It's on this demo controller here

where we do the injection.

I'll also paste in that print line statement

and that piece should be in place.

Okay, great.

So, this coding all looks pretty good.

I've added all the diagnostics here

for the various classes here that we're using

in this example.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.