File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 11package lotto ;
22
3+ import lotto .config .AppConfig ;
4+ import lotto .controller .LottoController ;
5+
36public class Application {
7+ static LottoController lottoController ;
8+
49 public static void main (String [] args ) {
5- // TODO: 프로그램 구현
10+ new Application ().run ();
11+ }
12+
13+ public void run () {
14+ lottoController = AppConfig .getLottoController ();
15+ lottoController .startGame ();
616 }
717}
Original file line number Diff line number Diff line change 1+ package lotto .config ;
2+
3+ import lotto .controller .LottoController ;
4+ import lotto .service .LottoService ;
5+ import lotto .view .LottoView ;
6+
7+ public class AppConfig {
8+ private static final LottoView lottoView = new LottoView ();
9+ private static final LottoService lottoService = new LottoService ();
10+
11+ public static LottoController getLottoController () {
12+ return new LottoController (lottoView , lottoService );
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments