Skip to content

API plugin factory creates concrete module types directly (plugins/api/plugin.go) #64

Description

@intel352

Problem

plugins/api/plugin.go module factories call module.NewQueryHandler(), module.NewCommandHandler() etc. directly. Swapping implementations requires modifying the plugin source code.

Fix Direction

Factories should accept constructor functions injected at plugin registration time, or use a secondary registry, so the concrete type can be substituted without touching the plugin. This makes the plugin truly open for extension.

Context

See docs/DEFERRED_ISSUES.md — Architecture section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitectural design and coupling issues

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions