-public class RestconfApplication extends Application {
- private final SchemaContextHandler schemaContextHandler = SchemaContextHandler.instance();
- private final DOMMountPointServiceHandler mountPointServiceHandler = DOMMountPointServiceHandler.instance();
+@Singleton
+public class RestconfApplication extends AbstractRestconfApplication {
+ private RestconfApplication(final SchemaContextHandler schemaContextHandler,
+ final DOMMountPointService mountPointService, final RestconfStreamsSubscriptionService streamSubscription,
+ final DOMDataBroker dataBroker, final DOMRpcService rpcService, final DOMActionService actionService,
+ final DOMNotificationService notificationService, final DOMSchemaService domSchemaService,
+ final Configuration configuration) {
+ super(schemaContextHandler, mountPointService, List.of(
+ streamSubscription,
+ new RestconfDataServiceImpl(schemaContextHandler, dataBroker, mountPointService, streamSubscription,
+ actionService, configuration),
+ new RestconfInvokeOperationsServiceImpl(rpcService, schemaContextHandler),
+ new RestconfOperationsServiceImpl(schemaContextHandler, mountPointService),
+ new RestconfSchemaServiceImpl(schemaContextHandler, mountPointService,
+ domSchemaService.getExtensions().getInstance(DOMYangTextSourceProvider.class)),
+ new RestconfImpl(schemaContextHandler)));