Package io.micronaut.context
Interface BootstrapContextAccess
@Internal
public interface BootstrapContextAccess
Interface for accessing aspects of the main context from the bootstrap context.
- Since:
- 4.6.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull BeanDefinitionRegistry
Get theBeanDefinitionRegistry
of the main context.
-
Method Details
-
getMainRegistry
Get theBeanDefinitionRegistry
of 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
-