Component Wiring
The CoreServer provides a set of specialized methods to wire up the application's building blocks during the initialization phase. These methods handle Dependency Injection, HTTP routing, and Hapi.js plugin integration.
To maintain a clean and modular documentation structure, the wiring process is broken down into the following specialized areas:
1. Service Wiring
Detailed guide on registering services into the DI Container, understanding the DI lifecycle, and utilizing Lazy vs. Eager initialization modes.
2. Controller Wiring
Explains the Controller Registry, the "Bigger Picture" of how controllers act as orchestrators, and their inward connection to Services.
3. Route Integration
Covers the "Outward" connection of controllers, the String Handler pattern, and the internal resolution logic within the CoreServer.
4. Plugin Integration
Documentation on integrating standard Hapi.js plugins and utilizing the Archibald options wrapper for dynamic configuration.
5. Feature Modules
Deep dive into logical feature bundles, the self-wiring register() hook, and the impact of modules on the global server lifecycle and orchestration.