IPluginFactory implementation
| 432 | public: |
| 433 | // IPluginFactory implementation |
| 434 | IPluginBase* createPlugin(CheckStatusWrapper* status, IPluginConfig* factoryParameter) |
| 435 | { |
| 436 | try |
| 437 | { |
| 438 | if (getUnloadDetector()->unloadStarted()) |
| 439 | { |
| 440 | Arg::Gds(isc_att_shut_engine).raise(); |
| 441 | } |
| 442 | |
| 443 | IPluginBase* p = FB_NEW JProvider(factoryParameter); |
| 444 | p->addRef(); |
| 445 | return p; |
| 446 | } |
| 447 | catch (const Firebird::Exception& ex) |
| 448 | { |
| 449 | ex.stuffException(status); |
| 450 | } |
| 451 | return NULL; |
| 452 | } |
| 453 | }; |
| 454 | |
| 455 | static Static<EngineFactory> engineFactory; |
no test coverage detected