Package io.helidon.microprofile.openapi
Class OpenApiCdiExtension
java.lang.Object
io.helidon.microprofile.servicecommon.HelidonRestCdiExtension
io.helidon.microprofile.openapi.OpenApiCdiExtension
- All Implemented Interfaces:
Extension
Portable extension to allow construction of a Jandex index (to pass to
SmallRye OpenAPI) from CDI if no
META-INF/jandex.idx
file exists on
the class path.-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.microprofile.servicecommon.HelidonRestCdiExtension
HelidonRestCdiExtension.WorkItemsManager<W>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
processManagedBean
(ProcessManagedBean<?> processManagedBean) Deals with a managed bean that survived vetoing, provided by concrete extension implementations.void
registerService
(Object event, ServerCdiExtension server) Register the Health observer with server observer feature.Methods inherited from class io.helidon.microprofile.servicecommon.HelidonRestCdiExtension
clearAnnotationInfo, componentConfig, isConcreteNonInterceptor, isOwnProducerOrNonDefaultQualified, nestedConfigKey, observeManagedBeans, prepareRuntime, producers, recordAnnotatedType, recordProducerField, recordProducerMethod, rootConfig, routingBuilder
-
Constructor Details
-
OpenApiCdiExtension
public OpenApiCdiExtension()Creates a new instance.
-
-
Method Details
-
registerService
public void registerService(@Observes @Priority(1010) @Initialized(jakarta.enterprise.context.ApplicationScoped.class) Object event, ServerCdiExtension server) Register the Health observer with server observer feature. This is a CDI observer method invoked by CDI machinery.- Parameters:
event
- event objectserver
- Server CDI extension
-
processManagedBean
Description copied from class:HelidonRestCdiExtension
Deals with a managed bean that survived vetoing, provided by concrete extension implementations.The meaning of "process" varies among the concrete implementations. At this point, this base implementation has managed the annotation processing in a general way (e.g., only non-vetoed beans survive) and now delegates to the concrete implementations to actually respond appropriately to the bean and whichever of its members are annotated.
- Overrides:
processManagedBean
in classHelidonRestCdiExtension
- Parameters:
processManagedBean
- the managed bean, with at least one annotation of interest to the extension
-