init method

  1. @override
void init()
override

Implementation

@override
void init() {
  // Register the apis this package implements
  Apis.apis().registerCoreApi(CoreApiImpl());
  Apis.apis().registerRegistryApi(RegistryApiImpl());
  Apis.apis().registerRouterApi(RouterApiImpl());
  Apis.apis().registerActionModelApi(ActionModelApiImpl());
  Apis.apis().registerWizardApi(WizardApiImpl());

  // Register the components this package implements
  ComponentRegistry().init(
    BlockingDashboardComponentConstructorDefault(),
    BlockingDashboardComponentEditorConstructor(),
    MemberDashboardComponentConstructorDefault(),
    MemberDashboardComponentEditorConstructor(),
  );

  // Register the wizards this package implements
  Apis.apis().getWizardApi().register(MemberDashboardDialogWizard());
  Apis.apis().getWizardApi().register(BlockingDashboardDialogWizard());
  Apis.apis().getWizardApi().register(LoginWizard());
  Apis.apis().getWizardApi().register(LogoutWizard());

  // Initialise the repositories of this package
  AbstractRepositorySingleton.singleton = RepositorySingleton();
  toolmainrepo.AbstractMainRepositorySingleton.singleton =
      toolmainrepoimpl.MainRepositorySingleton();

  otherrepo.AbstractRepositorySingleton.singleton =
      otherrepoimpl.RepositorySingleton();

  // Register the styles this package implements
  StyleRegistry.registry().registerStyleFamily(DefaultStyleFamily.instance());
}