forked from softeerbootcamp-7th/be-was
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencyLoader.java
More file actions
23 lines (19 loc) · 828 Bytes
/
DependencyLoader.java
File metadata and controls
23 lines (19 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package config;
import exception.ExceptionHandlerMapping;
import http.request.HttpRequestConverter;
import http.response.HttpResponseConverter;
import web.dispatch.Dispatcher;
public class DependencyLoader {
private final AppConfig appConfig;
public final HttpRequestConverter httpRequestConverter;
public final HttpResponseConverter httpResponseConverter;
public final ExceptionHandlerMapping exceptionHandlerMapping;
public final Dispatcher dispatcher;
public DependencyLoader(){
this.appConfig = new AppConfig();
this.httpRequestConverter = appConfig.httpRequestConverter();
this.httpResponseConverter = appConfig.httpResponseConverter();
this.exceptionHandlerMapping = appConfig.exceptionHandlerMapping();
this.dispatcher = appConfig.dispatcher();
}
}