- private final SchemaContextHandler schemaContextHandler = SchemaContextHandler.instance();
- private final DOMMountPointServiceHandler mountPointServiceHandler = DOMMountPointServiceHandler.instance();
+
+ private final SchemaContextHandler schemaContextHandler;
+ private final DOMMountPointServiceHandler mountPointServiceHandler;
+ private final ServicesWrapper servicesWrapper;
+
+ @Inject
+ public RestconfApplication(SchemaContextHandler schemaContextHandler,
+ DOMMountPointServiceHandler mountPointServiceHandler, ServicesWrapper servicesWrapper) {
+ this.schemaContextHandler = schemaContextHandler;
+ this.mountPointServiceHandler = mountPointServiceHandler;
+ this.servicesWrapper = servicesWrapper;
+ }