根据指定用途(如数据隐藏、数字水印)过滤并获取支持该功能的插件列表。
(cls, purpose)
| 60 | |
| 61 | @classmethod |
| 62 | def get_plugins_by_purpose(cls, purpose): |
| 63 | """根据指定用途(如数据隐藏、数字水印)过滤并获取支持该功能的插件列表。""" |
| 64 | if not cls._initialized: |
| 65 | cls.load_plugins() |
| 66 | |
| 67 | result = [] |
| 68 | for plugin in cls._plugins.values(): |
| 69 | if purpose in plugin.get_purposes(): |
| 70 | result.append(plugin) |
| 71 | return result |
| 72 |
nothing calls this directly
no test coverage detected