How frabbit/veins-di works
Main Components
a) Framework Core Components:
• Module System (Primary Container)
• Macro Processing Layer
• Dependency Resolution System
• Type Registration System
b) Runtime Flow Components:
• Bootstrap Process
• Dependency Graph
• Instance Creation Pipeline
• Lazy Loading Mechanism
┌─ Public API Layer ─────────────────┐
• Module.make() │
• .add() │
• .run() │
• .bootstrap() │
• ┘
┌─ Macro Processing Layer ───────────┐
• ModuleMacrosImpl │
• Type Analysis │
• Dependency Resolution │
• Code Generation │
• ┘
┌─ Runtime Layer ──────────────────┐
• Instance Management │
• Lazy Resolution │
• Dependency Graph │
• ┘
Key Elements to Highlight
• Compile-time components (blue)
• Runtime components (green)
• Public API (orange)
• Generated code (purple)
Important Relationships
• Module hierarchy (parent-child relationships)
• Type registration flow
• Dependency resolution process
• Instance creation sequence
• Lazy loading triggers
Additional Elements
• Symbol meanings
• Component types
Implementation Notes
• The compile-time nature of the framework
• The type-driven dependency resolution
• The module system's hierarchical nature
• The lazy loading mechanism
• The bootstrap process