Class MicronautCdiExtension
java.lang.Object
io.helidon.integrations.micronaut.cdi.MicronautCdiExtension
- All Implemented Interfaces:
Extension
Extension integrating CDI with Micronaut.
This extensions adds Micronaut beans to be injectable into CDI beans (limited to
Singleton
scope), and adds support for invoking Micronaut interceptors.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.context.ApplicationContext
context()
Get the application context of Micronaut.
-
Constructor Details
-
MicronautCdiExtension
public MicronautCdiExtension()
-
-
Method Details
-
context
public io.micronaut.context.ApplicationContext context()Get the application context of Micronaut. This method can only be invoked once the server is started.- Returns:
- Micronaut application context
- Throws:
IllegalStateException
- when invoked when server (and hence the context) is not started
-