Skip to content

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

Closed

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.

Activity

  1. added a commit that references this issue on Feb 23, 2026
    f263de8
  2. added a commit that references this issue on Feb 23, 2026
    23d7164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitectural design and coupling issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions