Feature #1847

Implement IFactory with constructor parameters

Added by pospelov almost 3 years ago.

Status:BacklogStart date:29 Sep 2017
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Implement possibility to save arbitrary number of object parameters in IFactory::registerItem

Something like:

              "Special version of cylinder",
              2.0, 3.0);

this will allow to create objects like
auto ff = create("CylinderSpecial")
without specifying cylinder parameters.

Refactoring should involve variadic templates and tuples to make it possible.

This will allow further simplification of functional test machinery.
  • StandardTestService+StandardTestCatalogue will go in the favor of unique TestService.
  • Class IRegistry can be thrown away
  • TranslationTests, SampleComponents can be simplified

Also available in: Atom PDF