finalizeInitialisation method

void finalizeInitialisation()

Implementation

void finalizeInitialisation() {
  try {
//    This must be set in the package, as that's the convention:  ComponentRegistry().init();

    var plugins = Packages.registeredPackages;
    for (var i = 0; i < plugins.length; i++) {
      var plugin = plugins[i];
      plugin.registerDependencies(this);
    }

    for (var i = 0; i < plugins.length; i++) {
      var plugin = plugins[i];
      plugin.init();
    }
  } catch (error) {
    print(error);
    rethrow;
  }
}