Package com.gemalto.mfs.mwsdk.sdkconfig
Class SDKController
java.lang.Object
com.gemalto.mfs.mwsdk.sdkconfig.SDKController
The entry point to the configure the SDK.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddService(String serviceName, BusinessService service) Deprecated.since 6.6 - no operationvoidforceAddService(String serviceName, BusinessService service) Deprecated.since 6.6 - no operationstatic SDKControllerGet the singleton instance of theSDKController.Return current SDK service state.getService(String serviceName) Deprecated.since 6.6 - Service object can be obtained from different BusinessManager classvoidshutDown()Caution: This method is for internal use only.
-
Method Details
-
getInstance
Get the singleton instance of theSDKController.- Returns:
- Singleton instance of
SDKController
-
getService
Deprecated.since 6.6 - Service object can be obtained from different BusinessManager classRetrieves the existing business service object.- Parameters:
serviceName- - name of the service to retrieve.- Returns:
- BusinessService object.
-
addService
Deprecated.since 6.6 - no operationAdds the new service into the service map if not exist. If service with the same name has already been registered before, the operation shall be simply skipped.- Parameters:
serviceName- - name of the service to add.service- - service object to add.- Returns:
- True if the service has been successfully added, false otherwise.
-
forceAddService
Deprecated.since 6.6 - no operationIMPORTANT:This is mainly used to support testing purpose.
Force add the new service even though the service name already existed in the service map.
- Parameters:
serviceName- - name of the service to add.service- - service object to add.
-
shutDown
public void shutDown()Caution: This method is for internal use only.Reset all the services and clean up the services from SDK.
-
getSDKServiceState
Return current SDK service state.- Returns:
- SDKServiceState
-