registerClass<T extends Module> method

void registerClass<T extends Module>(
  1. String name,
  2. FactoryFunc factoryFunc
)

Implementation

void registerClass<T extends Module>(String name, FactoryFunc factoryFunc)
{
  _factories[name] = factoryFunc;
}