File indexing completed on 2024-04-06 12:01:26
0001 #include "CondCore/CondDB/interface/CoralServiceFactory.h"
0002 #include "CondCore/CondDB/interface/Exception.h"
0003 #include "CoralKernel/Service.h"
0004
0005 EDM_REGISTER_PLUGINFACTORY(cond::CoralServicePluginFactory, "CoralService");
0006
0007 cond::CoralServiceFactory::~CoralServiceFactory() {}
0008
0009 cond::CoralServiceFactory::CoralServiceFactory() {}
0010
0011 cond::CoralServiceFactory* cond::CoralServiceFactory::get() {
0012 static cond::CoralServiceFactory singleInstance_;
0013 return &singleInstance_;
0014 }
0015
0016 coral::Service* cond::CoralServiceFactory::create(const std::string& componentname) const {
0017 std::unique_ptr<cond::CoralServiceWrapperBase> sp{CoralServicePluginFactory::get()->create(componentname)};
0018 return sp->create(componentname);
0019 }