Component
annotation in package klyn.di

    public annotation Component:

Component

Annotation used to mark classes as components that can be managed by the dependency injection context.

    @Component(name="myComponent")
    public class MyComponent:
    pass

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | name `name as String = null` | The name of the component.
public property | singleton `singleton as Boolean = true` | Specifies whether the component is a singleton.