import { Factory } from 'pip-services3-components-nodex'; import { Descriptor } from 'pip-services3-commons-nodex'; import { PushNotificationsNullConnector } from '../connectors/PushNotificationsNullConnector'; import { PushNotificationsSocketIOConnector } from '../connectors/PushNotificationsSocketIOConnector'; import { PushNotificationsController } from '../logic/PushNotificationsController'; import { PushNotificationsCommandableHttpServiceV1 } from '../services/version1/PushNotificationsCommandableHttpServiceV1'; export class PushNotificationsServiceFactory extends Factory { public static Descriptor = new Descriptor("service-pushnotifications", "factory", "default", "default", "1.0"); public static NullConnectorDescriptor = new Descriptor("service-pushnotifications", "connector", "null", "*", "1.0"); public static SocketIOConnectorDescriptor = new Descriptor("service-pushnotifications", "connector", "socketio", "*", "1.0"); public static ControllerDescriptor = new Descriptor("service-pushnotifications", "controller", "default", "*", "1.0"); public static CmdHttpServiceDescriptor = new Descriptor("service-pushnotifications", "service", "commandable-http", "*", "1.0"); constructor() { super(); this.registerAsType(PushNotificationsServiceFactory.NullConnectorDescriptor, PushNotificationsNullConnector); this.registerAsType(PushNotificationsServiceFactory.SocketIOConnectorDescriptor, PushNotificationsSocketIOConnector); this.registerAsType(PushNotificationsServiceFactory.ControllerDescriptor, PushNotificationsController); this.registerAsType(PushNotificationsServiceFactory.CmdHttpServiceDescriptor, PushNotificationsCommandableHttpServiceV1); } }