fun component(qualifier: Any = ApplicationScope::class, block: ComponentBuilderBlock): Component
Create an instance of Component.
qualifier
- A qualifier for the component.
block
- A builder block to register provider on the component.
Return
A instance of component containing all provider defined in the builder block.