MCPcopy Create free account
hub / github.com/castello/spring_basic / Car

Class Car

ch3/ApplicationContextTest.java:20–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18@Component class SuperEngine extends Engine {}
19
20@Component
21class Car {
22 @Value("red") String color;
23 @Value("100") int oil;
24 @Autowired Engine engine;
25 @Autowired Door[] doors;
26
27 @Override
28 public String toString() {
29 return "Car{" +
30 "color='" + color + '\'' +
31 ", oil=" + oil +
32 ", engine=" + engine +
33 ", doors=" + Arrays.toString(doors) +
34 '}';
35 }
36}
37
38public class ApplicationContextTest {
39 public static void main(String[] args) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected