public interface ServiceModule
| Modifier and Type | Method and Description |
|---|---|
void |
configure(MobileCore core,
ServiceConfiguration serviceConfiguration)
A method how create/configure the singleThreadService
|
void |
destroy()
Called when singleThreadService destroyed
|
boolean |
requiresConfiguration()
Whether the singleThreadService module requires its singleThreadService configuration to be
defined or if it can be null.
|
java.lang.String |
type()
Type/name used in the mobile-singleThreadService.json
|
java.lang.String type()
void configure(MobileCore core, ServiceConfiguration serviceConfiguration)
core - MobileCore instanceserviceConfiguration - the configuration for the singleThreadServiceboolean requiresConfiguration()
true then an exception will be thrown
if singleThreadService configuration cannot be found.true if the singleThreadService configuration should be defined.void destroy()