PluginServiceV2: allow factories to be deprecated
Sometimes it is useful to be able to deprecate components, i.e. to make sure a particular job does not use a certain set of components (e.g. a multi-threaded job should not use components that are known to be not thread-safe). This can now be achieved by setting the "deprecated" property in the plugin registry: ``` Registry::instance().addProperty( "MyTool", "deprecated", "optional message" ); ``` In addition, the warning can be turned into an error using the new `setError` method.
parent
96fa027c
No related branches found
No related tags found
Showing
- GaudiPluginService/include/Gaudi/Details/PluginServiceDetailsV2.h 24 additions, 1 deletion...ginService/include/Gaudi/Details/PluginServiceDetailsV2.h
- GaudiPluginService/src/PluginServiceV2.cpp 5 additions, 1 deletionGaudiPluginService/src/PluginServiceV2.cpp
- GaudiPluginService/tests/src/UseCasesTests.cpp 15 additions, 0 deletionsGaudiPluginService/tests/src/UseCasesTests.cpp
Loading
Please register or sign in to comment