All language subtitles for 028 Java Config Bean - Coding - Part 1_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese Download
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,170 --> 00:00:03,150 Instructor: Alrighty. So diving into our IDE, 2 00:00:03,150 --> 00:00:05,550 we'll take care of our normal housekeeping work. 3 00:00:15,480 --> 00:00:17,460 And then I'll do a copy paste here on this directory. 4 00:00:17,460 --> 00:00:19,473 08-bean-lifecycle-methods. 5 00:00:23,460 --> 00:00:24,360 And I'll rename it as 6 00:00:24,360 --> 00:00:26,523 09-Java-config-bean. 7 00:00:30,720 --> 00:00:33,243 And then I'll open this project here in IntelliJ. 8 00:00:37,731 --> 00:00:40,057 I'll just do a rebuild on the project 9 00:00:44,700 --> 00:00:46,140 and I wanna remove the code 10 00:00:46,140 --> 00:00:47,790 for @PostConstruct and @PreDestroy 11 00:00:47,790 --> 00:00:49,950 cause we don't really need it for these examples here. 12 00:00:49,950 --> 00:00:51,833 So I'll just kind of clean it up a bit. 13 00:00:58,227 --> 00:01:01,290 I'll just move down here into my cricket coach. 14 00:01:01,290 --> 00:01:04,050 Expand my window here for a second, 15 00:01:04,050 --> 00:01:05,519 and then I'll remove the code here 16 00:01:05,519 --> 00:01:07,270 for @PostConstruct and @PreDestroy. 17 00:01:27,343 --> 00:01:28,260 And now what I'll do is I'll create 18 00:01:28,260 --> 00:01:29,793 this new class call SwimCoach. 19 00:01:48,775 --> 00:01:52,108 I'll expand my window here for a second. 20 00:01:54,180 --> 00:01:56,943 This SwimCoach will implement the coach interface. 21 00:02:11,250 --> 00:02:12,720 And then our coach here says, 22 00:02:12,720 --> 00:02:15,780 swim a thousand meters as a warmup. 23 00:02:15,780 --> 00:02:16,613 Oh my. 24 00:02:23,520 --> 00:02:25,650 And then we'll also create a constructor here 25 00:02:25,650 --> 00:02:26,910 just for diagnostics, 26 00:02:26,910 --> 00:02:30,093 just to see that that this given class is being created. 27 00:02:37,560 --> 00:02:40,260 So I just assist our print line and constructor 28 00:02:40,260 --> 00:02:42,160 and I simply print out the class name. 29 00:02:55,110 --> 00:02:55,943 And then notice here 30 00:02:55,943 --> 00:02:59,673 I'm not using a component annotation here on purpose. 31 00:03:04,950 --> 00:03:07,550 Now let's go ahead and move into our demo controller 32 00:03:11,970 --> 00:03:13,863 and I'll inject our SwimCoach 33 00:03:22,445 --> 00:03:26,528 and I'll just clean the code up just a bit there. 34 00:03:28,620 --> 00:03:30,933 And let's go ahead and run our application. 35 00:03:35,820 --> 00:03:38,733 And it's expected this will kind of crash and fail, right? 36 00:03:39,630 --> 00:03:41,193 It says it failed to start. 37 00:03:44,190 --> 00:03:47,140 The parameter of zero of the constructor 38 00:03:51,930 --> 00:03:53,050 could not be found 39 00:03:56,250 --> 00:03:57,570 and the injection point 40 00:03:57,570 --> 00:04:01,800 with the following annotation qualifier SwimCoach. 41 00:04:01,800 --> 00:04:04,140 Okay? So it couldn't find a swim coach, 42 00:04:04,140 --> 00:04:05,430 and that's expected because we really 43 00:04:05,430 --> 00:04:07,110 haven't done any special annotations 44 00:04:07,110 --> 00:04:08,913 on that SwimCoach class. 45 00:04:20,820 --> 00:04:22,019 We can't find a swim coach 46 00:04:22,019 --> 00:04:24,360 because it's not annotated with component. 47 00:04:24,360 --> 00:04:27,513 For this example, we can use an alternate solution. 3577

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