Skip to content
Snippets Groups Projects

PluginServiceV2: allow factories to be deprecated

Merged Frank Winklmeier requested to merge fwinkl/Gaudi:factory_deprecated into master
  1. Nov 17, 2022
    • Frank Winklmeier's avatar
      GaudiPluginService: add DECLARE_COMPONENT_PROPERTY macro · 67106d42
      Frank Winklmeier authored
      `DECLARE_COMPONENT_PROPERTY( MyComponent, "myprop", "value" )` can be
      used to set properties on already declared components.
      67106d42
    • Frank Winklmeier's avatar
      PluginServiceV2: allow factories to be deprecated · 5f59d208
      Frank Winklmeier authored
      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.
      5f59d208
Loading