Skip to content

Implement Factory Patterns #214

@michaelbeale-IL

Description

@michaelbeale-IL

Create factory patterns for complex object creation (scanners, agents, actuators, widgets).

Acceptance Criteria:

  • IScannerFactory interface and implementation
  • IAgentFactory interface and implementation
  • IActuatorFactory interface and implementation
  • IWidgetFactory interface and implementation
  • Factories registered in DI container
  • Existing creation code refactored to use factories
  • Tests for factory implementations

Technical Approach:

  • Factory per component type
  • Factory receives IServiceProvider for dependency resolution
  • Support for type-based and name-based instantiation
  • Proper error handling for missing types

Files to Create:

  • Libraries/ACATCore/PanelManagement/IScannerFactory.cs
  • Libraries/ACATCore/PanelManagement/ScannerFactory.cs
  • Similar for agents, actuators, widgets

Epic: Dependency Injection Infrastructure

Estimated Effort: 4 days


Parent Feature: #190 - Dependency Injection Infrastructure

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions