Class OpenApiCdiExtension

All Implemented Interfaces:

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.
      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.

      processManagedBean in class HelidonRestCdiExtension
      processManagedBean - the managed bean, with at least one annotation of interest to the extension