Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AntManager<TConfig, TModel, TAntModelManager>

General manager. This class takes the responsabilities of providing the entry point of the API and managing model managers

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _config

_config: ApiGeneralConfig<TConfig>

AntJS general config.

Protected _managersByModel

_managersByModel: Map<TModel, TAntModelManager>

Map of managers by model.

Methods

Protected Abstract _createModelManager

  • _createModelManager(model: TModel): TAntModelManager
  • Creates a model manager.

    Parameters

    • model: TModel

      Model to manage.

    Returns TAntModelManager

    model manager created.

config

get

  • get(model: TModel): TAntModelManager
  • Gets an AntJS model manager by it's model.

    Parameters

    • model: TModel

      model of the manager.

    Returns TAntModelManager

    AntJS model manager found. If no manager is found, a new one is created and returned.

Generated using TypeDoc