MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / factory

Method factory

src/yvalve/PluginManager.cpp:604–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 };
603
604 IPluginBase* ConfiguredPlugin::factory(IFirebirdConf* firebirdConf)
605 {
606 FactoryParameter* par = FB_NEW FactoryParameter(this, firebirdConf);
607 par->addRef();
608
609 FbLocalStatus ls;
610 IPluginBase* plugin = module->getPlugin(regPlugin).factory->createPlugin(&ls, par);
611
612 if (plugin && !(ls->getState() & Firebird::IStatus::STATE_ERRORS))
613 {
614 plugin->setOwner(par);
615 return plugin;
616 }
617
618 par->release();
619 check(&ls);
620 return NULL;
621 }
622
623
624 class MapKey : public AutoStorage

Callers 3

makeFunctionMethod · 0.80
makeProcedureMethod · 0.80
getPluginMethod · 0.80

Calls 8

FactoryParameterClass · 0.85
checkFunction · 0.50
addRefMethod · 0.45
createPluginMethod · 0.45
getPluginMethod · 0.45
getStateMethod · 0.45
setOwnerMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected