Class MicronautCdiExtension
java.lang.Object
io.helidon.integrations.micronaut.cdi.MicronautCdiExtension
- All Implemented Interfaces:
Extension
@Deprecated(forRemoval=true,
since="4.4.5")
public class MicronautCdiExtension
extends Object
implements Extension
Deprecated, for removal: This API element is subject to removal in a future version.
use the Helidon Declarative programming model instead
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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.context.ApplicationContextcontext()Deprecated, for removal: This API element is subject to removal in a future version.Get the application context of Micronaut.
-
Constructor Details
-
MicronautCdiExtension
public MicronautCdiExtension()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
context
public io.micronaut.context.ApplicationContext context()Deprecated, for removal: This API element is subject to removal in a future version.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
-