| 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 |
no test coverage detected