In my current project, there are lots of Factory Methods,
so when the program begin it has:
Init()
{
RegisterFactory(A1);
RegisterFactory(A2);
...
//hundreds of Register.
...
}
Is there any other way to do this? It looks not reasonable.