Component
annotationin packageklyn.di
public annotation 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 |
The name of the component. |
| public property |
singleton |
Specifies whether the component is a singleton. |