|
@@ -165,11 +165,11 @@
|
165
|
165
|
* Create a `TestClassroomConfig` class in the `test` package.
|
166
|
166
|
* The class should ensure that each `Bean` in the `TestClassroomConfig` class is configured as expected.
|
167
|
167
|
|
|
168
|
+## Part 11 - Using `@Component`
|
|
169
|
+* Annotating a class signature class with `@Component` allows Spring to register this class as a `Bean` implicitly.
|
168
|
170
|
-
|
169
|
171
|
### Part 11 - Create `Alumni` Class
|
170
|
|
-* Create an `Alumni` class which autowires `Students` of the previous and `Instructors`
|
171
|
|
-* Annotate the class signature class with `@Component`
|
172
|
|
- * The annotation allows Spring to register this class as a `Bean` implicitly.
|
|
172
|
+* Create an `Alumni` component which autowires `Students` of the previous and `Instructors`
|
173
|
173
|
* Create an `executeBootcamp` method which teaches each `Student` in the composite `Students` a `totalNumberOfHours` of `1200`.
|
174
|
174
|
* Annotate this method with `@PostConstruct`
|
175
|
175
|
* denotes that this method must be executed before the class is put into an IoC container
|