loadPackage static method

void loadPackage(
  1. CLAIDPackage package
)

Implementation

static void loadPackage(CLAIDPackage package)
{
    String packageName = package.runtimeType.toString();

    if(loadedPackages.containsKey(packageName))
    {
        Logger.logWarning("Not loading CLAID package \"$packageName\", because it is already loaded.");
        return;
    }
    Logger.logInfo("Loading package $packageName");
    package.register();
    loadedPackages[packageName] = package;
}