Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:22

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 }