Class MicronautCdiExtension
- java.lang.Object
-
- io.helidon.integrations.micronaut.cdi.MicronautCdiExtension
-
- All Implemented Interfaces:
Extension
public class MicronautCdiExtension extends Object implements Extension
Extension integrating CDI with Micronaut. This extensions adds Micronaut beans to be injectable into CDI beans (limited toSingleton
scope), and adds support for invoking Micronaut interceptors.
-
-
Constructor Summary
Constructors Constructor Description MicronautCdiExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.context.ApplicationContext
context()
Get the application context of Micronaut.
-
-
-
Method Detail
-
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
-
-