Class SDKController


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

      • getService

        public BusinessService getService​(java.lang.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​(java.lang.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​(java.lang.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