public DIContext(packages as IList<String>):
Creates a dependency injection context restricted to selected packages.
Components outside the configured packages are ignored by scanAnnotations().
| Parameter | Description |
|---|---|
packages | Package roots scanned for @Component and @Service annotations. |
import klyn.di context = DIContext(packages=["application.services"]) context.scanAnnotations()