Class SDKController

java.lang.Object
com.gemalto.mfs.mwsdk.sdkconfig.SDKController

public final class SDKController extends Object
The entry point to the configure the SDK.
  • Method Details

    • getInstance

      public static SDKController getInstance()
      Get the singleton instance of the SDKController.
      Returns:
      Singleton instance of SDKController
    • getService

      public BusinessService getService(String serviceName)
      Deprecated.
      since 6.6 - Service object can be obtained from different BusinessManager class
      Retrieves the existing business service object.
      Parameters:
      serviceName - - name of the service to retrieve.
      Returns:
      BusinessService object.
    • addService

      public boolean addService(String serviceName, BusinessService service)
      Deprecated.
      since 6.6 - no operation
      Adds 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

      public void forceAddService(String serviceName, BusinessService service)
      Deprecated.
      since 6.6 - no operation
      IMPORTANT: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

      public SDKServiceState getSDKServiceState()
      Return current SDK service state.
      Returns:
      SDKServiceState