-
- 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 DataQueuingdataQueueServicepublic MessagingDelegatemessageDelegate
-
Method Summary
Modifier and Type Method Description DataQueuinggetDataQueueService()Gets the DataQueuing service MessagingDelegategetMessageDelegate()Gets the custom MessagingDelegate. voidsetMessageDelegate(MessagingDelegate messageDelegate)Sets a custom MessagingDelegate. 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 voidsetURIHandler(URIHandler uriHandler)Provides an URIHandler to decide the destination of the given URI -
-
Method Detail
-
getDataQueueService
DataQueuing getDataQueueService()
Gets the DataQueuing service
-
getMessageDelegate
MessagingDelegate getMessageDelegate()
Gets the custom MessagingDelegate.
-
setMessageDelegate
void setMessageDelegate(MessagingDelegate messageDelegate)
Sets a custom MessagingDelegate.
- Parameters:
messageDelegate- the custom MessagingDelegate to message visibility updates
-
getInstance
static ServiceProvider getInstance()
Singleton method to get the instance of ServiceProvider
-
getLoggingService
Logging getLoggingService()
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
-
getDeviceInfoService
DeviceInforming getDeviceInfoService()
Gets the DeviceInforming service
-
getNetworkService
Networking getNetworkService()
Gets the current Networking service.
-
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
-
getCacheService
CacheService getCacheService()
Gets the CacheService service
-
getAppContextService
AppContextService getAppContextService()
Gets the AppContextService service
-
setURIHandler
void setURIHandler(URIHandler uriHandler)
Provides an URIHandler to decide the destination of the given URI
- Parameters:
uriHandler- An URIHandler instance used to decide the Android link's destination
-
-
-
-