Class OpenApiCdiExtension

java.lang.Object
io.helidon.microprofile.servicecommon.HelidonRestCdiExtension
io.helidon.microprofile.openapi.OpenApiCdiExtension
All Implemented Interfaces:
Extension

public class OpenApiCdiExtension extends HelidonRestCdiExtension
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.
  • 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 object
      server - Server CDI extension
    • processManagedBean

      protected void processManagedBean(ProcessManagedBean<?> 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 class HelidonRestCdiExtension
      Parameters:
      processManagedBean - the managed bean, with at least one annotation of interest to the extension