-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAppConfig.java
More file actions
42 lines (35 loc) · 1.06 KB
/
AppConfig.java
File metadata and controls
42 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package lotto;
import lotto.controller.LottoController;
import lotto.service.LottoControlService;
import lotto.service.LottoControlServiceImpl;
import lotto.service.RandomService;
import lotto.service.RandomServiceImpl;
import lotto.view.InputView;
import lotto.view.OutputView;
import lotto.view.provider.InputProvider;
import lotto.view.provider.WoowaInputProvider;
public class AppConfig {
public InputProvider inputProvider() {
return new WoowaInputProvider();
}
public InputView inputView() {
return new InputView(inputProvider());
}
public OutputView outputView() {
return new OutputView();
}
public LottoControlService lottoControlService() {
return new LottoControlServiceImpl();
}
public RandomService randomService() {
return new RandomServiceImpl();
}
public LottoController lottoController() {
return new LottoController(
inputView(),
outputView(),
lottoControlService(),
randomService()
);
}
}