InitMethod
annotation in package klyn.di

    public annotation InitMethod:

InitMethod

Marks a method that must be called after dependency injection has initialized a component.

The DI runtime can use this annotation to separate construction from initialization logic that requires injected dependencies to be available.

    import klyn.di

    public class CacheService:
    @InitMethod
    public start() as Void:
    print("Cache service initialized")