Package com.microej.wear
Class KernelServiceProvider
- java.lang.Object
-
- com.microej.wear.KernelServiceProvider
-
public class KernelServiceProvider extends java.lang.Object
Provides the instance of every Kernel service to the Features.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComponentService
getComponentService()
Returns the component service instance.static DeviceService
getDeviceService()
Returns the device service instance.static ExternalResourceService
getExternalResourceService()
Returns the external resources service instance.static FontService
getFontService()
Returns the font service instance.static HealthService
getHealthService()
Returns the health service instance.static NavigationService
getNavigationService()
Returns the navigation service instance.static ej.bon.Timer
getTimer()
Returns the timer instance.static TimeService
getTimeService()
Returns the time service instance.static void
setServices(ej.bon.Timer timer, ComponentService componentService, NavigationService navigationService, FontService fontService, ExternalResourceService externalResourceService, HealthService healthService, DeviceService deviceService, TimeService timeService)
Sets the instance of every service.
-
-
-
Method Detail
-
getTimer
public static ej.bon.Timer getTimer()
Returns the timer instance.- Returns:
- the timer instance.
-
getComponentService
public static ComponentService getComponentService()
Returns the component service instance.- Returns:
- the component service instance.
-
getDeviceService
public static DeviceService getDeviceService()
Returns the device service instance.- Returns:
- the device service instance.
-
getExternalResourceService
public static ExternalResourceService getExternalResourceService()
Returns the external resources service instance.- Returns:
- the external resources service instance.
-
getFontService
public static FontService getFontService()
Returns the font service instance.- Returns:
- the font service instance.
-
getHealthService
public static HealthService getHealthService()
Returns the health service instance.- Returns:
- the health service instance.
-
getNavigationService
public static NavigationService getNavigationService()
Returns the navigation service instance.- Returns:
- the navigation service instance.
-
getTimeService
public static TimeService getTimeService()
Returns the time service instance.- Returns:
- the time service instance.
-
setServices
public static void setServices(ej.bon.Timer timer, ComponentService componentService, NavigationService navigationService, FontService fontService, ExternalResourceService externalResourceService, HealthService healthService, DeviceService deviceService, TimeService timeService)
Sets the instance of every service.- Parameters:
timer
- the timer instance.componentService
- the component service instance.navigationService
- the navigation service instance.fontService
- the font service instance.externalResourceService
- the external resource service instance.healthService
- the health service instance.deviceService
- the device service instance.timeService
- the time service instance.
-
-