ServiceFactory<T>AccelerometerServiceFactory, AudioRecordingServiceFactory, BarcodeScanServiceFactory, BatteryServiceFactory, BleServiceFactory, BrowserServiceFactory, CacheServiceFactory, CompassServiceFactory, ConnectivityServiceFactory, DeviceServiceFactory, DialerServiceFactory, DisplayServiceFactory, InAppBillingServiceFactory, LifecycleServiceFactory, LocalNotificationsServiceFactory, MagnetometerServiceFactory, OrientationServiceFactory, PicturesServiceFactory, PositionServiceFactory, PushNotificationsServiceFactory, RuntimeArgsServiceFactory, SettingsServiceFactory, ShareServiceFactory, StatusBarServiceFactory, StorageServiceFactory, VibrationServiceFactory, VideoServiceFactorypublic abstract class DefaultServiceFactory<T> extends java.lang.Object implements ServiceFactory<T>
| Constructor | Description |
|---|---|
DefaultServiceFactory(java.lang.Class<T> serviceType) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<T> |
getInstance() |
|
java.lang.Class<T> |
getServiceType() |
public DefaultServiceFactory(java.lang.Class<T> serviceType)
public java.lang.Class<T> getServiceType()
getServiceType in interface ServiceFactory<T>public java.util.Optional<T> getInstance()
getInstance in interface ServiceFactory<T>