Class ServiceProvider
-
- All Implemented Interfaces:
public class ServiceProviderMaintains the current set of provided services and any potential service overrides
-
-
Field Summary
Fields Modifier and Type Field Description public DataQueuingdataQueueService
-
Method Summary
Modifier and Type Method Description DataQueuinggetDataQueueService()Gets the DataQueuing service static ServiceProvidergetInstance()Singleton method to get the instance of ServiceProvider LogginggetLoggingService()Returns the current Logging voidsetLoggingService(Logging loggingService)Overrides the Logging service. DataStoringgetDataStoreService()Gets the DataStoring service DeviceInforminggetDeviceInfoService()Gets the DeviceInforming service NetworkinggetNetworkService()Gets the current Networking service. voidsetNetworkService(Networking networkService)Overrides the Networking service. UIServicegetUIService()Gets the UIService service CacheServicegetCacheService()Gets the CacheService service AppContextServicegetAppContextService()Gets the AppContextService service UriOpeninggetUriService()Gets the UriOpening service -
-
Method Detail
-
getDataQueueService
DataQueuing getDataQueueService()
Gets the DataQueuing service
- Returns:
the DataQueuing service
-
getInstance
static ServiceProvider getInstance()
Singleton method to get the instance of ServiceProvider
- Returns:
the ServiceProvider singleton
-
getLoggingService
Logging getLoggingService()
Returns the current Logging
- Returns:
the current Logging
-
setLoggingService
void setLoggingService(Logging loggingService)
Overrides the Logging service.
- Parameters:
loggingService- the new Logging service which will override the default service
-
getDataStoreService
DataStoring getDataStoreService()
Gets the DataStoring service
- Returns:
the DataStoring service
-
getDeviceInfoService
DeviceInforming getDeviceInfoService()
Gets the DeviceInforming service
- Returns:
the DeviceInforming service
-
getNetworkService
Networking getNetworkService()
Gets the current Networking service.
- Returns:
the override Networking service if it has been provided, otherwise the default Networking service is returned
-
setNetworkService
void setNetworkService(Networking networkService)
Overrides the Networking service.
- Parameters:
networkService- the new Networking service which will override the default Networking service
-
getUIService
UIService getUIService()
Gets the UIService service
- Returns:
the UIService service
-
getCacheService
CacheService getCacheService()
Gets the CacheService service
- Returns:
the UIService service
-
getAppContextService
AppContextService getAppContextService()
Gets the AppContextService service
- Returns:
the AppContextService service
-
getUriService
UriOpening getUriService()
Gets the UriOpening service
- Returns:
the UriOpening service
-
-
-
-