Package com.gemalto.mfs.mwsdk.sdkconfig
Class SDKController
- java.lang.Object
-
- com.gemalto.mfs.mwsdk.sdkconfig.SDKController
-
public final class SDKController extends java.lang.Object
The entry point to the configure the SDK.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addService(java.lang.String serviceName, BusinessService service)
Deprecated.since 6.6 - no operationvoid
forceAddService(java.lang.String serviceName, BusinessService service)
Deprecated.since 6.6 - no operationstatic SDKController
getInstance()
Get the singleton instance of theSDKController
.SDKServiceState
getSDKServiceState()
Return current SDK service state.BusinessService
getService(java.lang.String serviceName)
Deprecated.since 6.6 - Service object can be obtained from different BusinessManager classvoid
shutDown()
Caution: This method is for internal use only.
-
-
-
Method Detail
-
getInstance
public static SDKController getInstance()
Get the singleton instance of theSDKController
.- Returns:
- Singleton instance of
SDKController
-
getService
public BusinessService getService(java.lang.String serviceName)
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
public boolean addService(java.lang.String serviceName, BusinessService service)
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
public void forceAddService(java.lang.String serviceName, BusinessService service)
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
public SDKServiceState getSDKServiceState()
Return current SDK service state.- Returns:
- SDKServiceState
-
-