clear method

void clear()

Implementation

void clear(){
  _factoriesByName.clear();
  _factories.clear();
}