|
|
|
|
165
|
* Create a `TestClassroomConfig` class in the `test` package.
|
165
|
* Create a `TestClassroomConfig` class in the `test` package.
|
166
|
* The class should ensure that each `Bean` in the `TestClassroomConfig` class is configured as expected.
|
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
|
### Part 11 - Create `Alumni` Class
|
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
|
* Create an `executeBootcamp` method which teaches each `Student` in the composite `Students` a `totalNumberOfHours` of `1200`.
|
173
|
* Create an `executeBootcamp` method which teaches each `Student` in the composite `Students` a `totalNumberOfHours` of `1200`.
|
174
|
* Annotate this method with `@PostConstruct`
|
174
|
* Annotate this method with `@PostConstruct`
|
175
|
* denotes that this method must be executed before the class is put into an IoC container
|
175
|
* denotes that this method must be executed before the class is put into an IoC container
|