Package io.micronaut.context
Interface BootstrapContextAccess
Interface for accessing aspects of the main context from the bootstrap context.
- Since:
- 4.6.0
- Author:
- Jonas Konrad
-
Method Summary
Modifier and TypeMethodDescription@NonNull BeanDefinitionRegistryGet theBeanDefinitionRegistryof the main context.
-
Method Details
-
getMainRegistry
@NonNull BeanDefinitionRegistry getMainRegistry()Get theBeanDefinitionRegistryof the main context. Note that when the bootstrap context is active, much of this registry will not be initialized yet, so most beans will be missing. However, you can register your own beans.- Returns:
- The registry
-