klyn.di.DIContext.scanAnnotations
method
public scanAnnotations() as Void:
Description

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()