IviServiceHostDeploymentConfigurator

interface IviServiceHostDeploymentConfigurator

Interface to configure the deployment of one or more IviServiceHostConfigs.

The interface allows a fluent interface / method chaining style to configure the deployment. See RuntimeDeploymentConfigurator for an example.

Functions

Link copied to clipboard
abstract fun asBinderHost(): IviServiceHostDeploymentConfigurator

Configures the hosts to use the IviServiceConnectionType.BINDER as connection type.

Link copied to clipboard
abstract fun asDirectHost(): IviServiceHostDeploymentConfigurator

Configures the hosts to use the IviServiceConnectionType.DIRECT as connection type.

Link copied to clipboard
abstract fun inMainProcess(): IviServiceHostDeploymentConfigurator

Configures the service host to run in the main process of the application.

Link copied to clipboard
abstract fun inSameProcessAs(androidServiceConfig: AndroidServiceConfig): IviServiceHostDeploymentConfigurator

Configures the service host to run in the same process as another Android service identified by androidServiceConfig. The androidServiceConfig needs to be deployed as part of the same RuntimeDeploymentConfigurator.Global runtime deployment with RuntimeDeploymentConfigurator.Global.deployAndroidService.

abstract fun inSameProcessAs(broadcastReceiverConfig: BroadcastReceiverConfig): IviServiceHostDeploymentConfigurator

Configures the service host to run in the same process as another broadcast receiver identified by broadcastReceiverConfig. The broadcastReceiverConfig needs to be deployed as part of the same RuntimeDeploymentConfigurator.Global runtime deployment with RuntimeDeploymentConfigurator.Global.deployBroadcastReceiver.

abstract fun inSameProcessAs(iviServiceHostConfig: IviServiceHostConfig): IviServiceHostDeploymentConfigurator

Configures the service host to run in the same process as the given iviServiceHostConfig. The iviServiceHostConfig must be deployed with the IviServiceConnectionType.BINDER connection type and must be deployed as part of the same RuntimeDeploymentConfigurator with RuntimeDeploymentConfigurator.deployServiceHost.

Link copied to clipboard
abstract fun withProcessName(    name: String,     withDefaultPrefix: Boolean = true,     withDefaultSuffix: Boolean = true): IviServiceHostDeploymentConfigurator

Configures the name of the process that should be used to run this service host in. The process name is ignored when the IviServiceConnectionType.DIRECT connection type is used.