CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CoralServiceFactory.cc
Go to the documentation of this file.
3 #include "CoralKernel/Service.h"
4 
6 
7 
9 }
10 
12 }
13 
14 
17  static cond::CoralServiceFactory singleInstance_;
18  return &singleInstance_;
19 }
20 
21 coral::Service*
22 cond::CoralServiceFactory::create(const std::string& componentname) const {
23  coral::Service* sp=CoralServicePluginFactory::get()->create(componentname,componentname);
24  if(sp==0) {
25  throw cond::Exception("CoralServiceFactory")
26  << "CoralServiceFactory:\n"
27  << "Cannot find coral service: "
28  << componentname << "\n"
29  << "Perhaps the name is misspelled or is not a Plugin?\n"
30  << "Try running EdmPluginDump to obtain a list of available Plugins.";
31  }
32  return sp;
33 }
static CoralServiceFactory * get()
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition: PluginFactory.h:90
coral::Service * create(const std::string &componentname) const
T get(const Candidate &c)
Definition: component.h:55