import ServiceActivator from 'devapt-core-common/js/services/service_activator.js'
ServiceActivator
Service activator class.
Constructor Summary
Public Constructor | ||
public |
constructor(arg_service_instance: Service): nothing Create a service provider. |
Member Summary
Public Members | ||
public |
|
|
public |
service: * |
Method Summary
Public Methods | ||
public |
activate(arg_provider: ServiceProvider, arg_application: Application, arg_server: Server): nothing Activate a service feature for an application. |
|
public |
activate_on_socketio_server(arg_provider: ServiceProvider, arg_socketio: object): nothing Activate service on one socketio server for browser request with messages. |
Public Constructors
public constructor(arg_service_instance: Service): nothing source
Create a service provider.
API:
->activate(arg_application, arg_server, arg_app_svc_cfg):nothing - Activate a service feature for an application.
Params:
Name | Type | Attribute | Description |
arg_service_instance | Service | service instance. |
Return:
nothing |
Public Methods
public activate(arg_provider: ServiceProvider, arg_application: Application, arg_server: Server): nothing source
Activate a service feature for an application.
Params:
Name | Type | Attribute | Description |
arg_provider | ServiceProvider | service provider instance. |
|
arg_application | Application | application instance. |
|
arg_server | Server | server instance to bind the service. |
Return:
nothing |
public activate_on_socketio_server(arg_provider: ServiceProvider, arg_socketio: object): nothing source
Activate service on one socketio server for browser request with messages.
Params:
Name | Type | Attribute | Description |
arg_provider | ServiceProvider | service provider instance. |
|
arg_socketio | object | socketio server. |
Return:
nothing |