public scanAnnotations() as Void:
Scans annotations and registers discovered singleton components.
Classes annotated with @Component or @Service are instantiated through their zero-argument constructor, then properties annotated with @Autowired are injected from the registered component map.
import klyn.di context = DIContext() context.scanAnnotations()