public class SDKContainer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addListener(IConfigListener pListener)
Add a SDK listener to the container.
|
static void |
addSDK(ISdk pSdk)
Add the SDK given in parameter to the list of the others.
|
static void |
clear()
Removes all the SDK contained.
|
static boolean |
containsName(java.lang.String pName)
Checks whether the corresponding SDK name already exists.
|
static void |
delSDK(ISdk pSdk)
remove the given SDK from the list.
|
static void |
dispose()
Dispose the vector used.
|
static SDKContainer |
getInstance()
Singleton accessor, named
getInstance in many other singleton pattern implementations. |
static ISdk |
getSDK(java.lang.String pSdkkey)
Returns the sdk that corresponds to the given sdk name and buildid.
|
static int |
getSDKCount()
Returns the number of SDK in the list.
|
static java.util.Vector<java.lang.String> |
getSDKKeys()
Returns a vector containing the unique identifiers of the contained SDKs.
|
static void |
load()
Loads the SDK already configured instances from the preferences.
|
static void |
removeListener(IConfigListener pListener)
Removes a SDK listener from the container.
|
static void |
saveSDKs()
Saves the SDK already configured instances to the preferences.
|
static java.lang.Object[] |
toArray() |
static void |
updateSDK(java.lang.String pSdkkey,
ISdk pSdk)
update the ith SDK from the list with the given SDK.
|
public static void addListener(IConfigListener pListener)
pListener - SDK listener to addpublic static void removeListener(IConfigListener pListener)
pListener - SDK listener to removepublic static java.lang.Object[] toArray()
public static void addSDK(ISdk pSdk)
pSdk - SDK to addpublic static void delSDK(ISdk pSdk)
pSdk - SDK to removepublic static void clear()
public static java.util.Vector<java.lang.String> getSDKKeys()
public static boolean containsName(java.lang.String pName)
pName - the SDK Name to checktrue if the name is already present, false otherwise.public static void updateSDK(java.lang.String pSdkkey,
ISdk pSdk)
pSdkkey - position of the sdk to updatepSdk - new value for the SDKpublic static ISdk getSDK(java.lang.String pSdkkey)
pSdkkey - unique identifier of the wanted sdkpublic static int getSDKCount()
public static void dispose()
public static SDKContainer getInstance()
getInstance in many other singleton pattern implementations.SDKContainer singleton instance.public static void load()
public static void saveSDKs()