* Lazy holder for the singleton (Bill Pugh solution)
* Until we need an instance, the holder class will not be initialized until required and you can still use other static members of the singleton class.
...
...
@@ -309,7 +309,7 @@ public class JniExecutor implements IJNICallback {
@@ -376,7 +376,7 @@ public class JniExecutor implements IJNICallback {
publicfinalObjectgetLock(){
returnmJniMw.getLock();
}
/**
* Gets connection state. SYNCHRONOUS
* @return true, if connected (connection to MC is initialized (after init() is called) and not yet terminated (before asynchronous shutdownSession() is completed))
...
...
@@ -437,10 +437,10 @@ public class JniExecutor implements IJNICallback {
mHostControllers.add(aHc);
}
}
/**
* @return added host controllers. It can be null
*/
* @return added host controllers. It can be null
*/
publicList<HostController>getHostControllers(){
returnmHostControllers;
}
...
...
@@ -481,7 +481,7 @@ public class JniExecutor implements IJNICallback {
}
Log.fo();
}
/**
* Sets the API observer for notifications and callbacks. SYNCHRONOUS
* <p>
...
...
@@ -493,7 +493,7 @@ public class JniExecutor implements IJNICallback {
checkConnection(true);
mObserver=aObserver;
}
/**
* Starts MC session. SYNCHRONOUS
* <p>
...
...
@@ -509,16 +509,16 @@ public class JniExecutor implements IJNICallback {
Log.fi();
synchronized(getLock()){
checkState(McStateEnum.MC_INACTIVE);
// DEFAULT_LOCAL_HOST_ADDRESS is used by default if config file is not provided ( setConfigFileName() is not called )