Package io.helidon.microprofile.openapi
Class OpenApiCdiExtension
- java.lang.Object
-
- io.helidon.microprofile.openapi.OpenApiCdiExtension
-
- All Implemented Interfaces:
javax.enterprise.inject.spi.Extension
public class OpenApiCdiExtension extends Object implements javax.enterprise.inject.spi.Extension
Portable extension to allow construction of a Jandex index (to pass to SmallRye OpenAPI) from CDI if noMETA-INF/jandex.idxfile exists on the class path.
-
-
Constructor Summary
Constructors Constructor Description OpenApiCdiExtension()Creates a new instance of the index builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.jandex.IndexViewindexView()Reports anIndexViewfor the Jandex index that describes annotated classes for endpoints.
-
-
-
Constructor Detail
-
OpenApiCdiExtension
public OpenApiCdiExtension() throws IOExceptionCreates a new instance of the index builder.- Throws:
IOException- in case of error checking for the Jandex index files
-
-
Method Detail
-
indexView
public org.jboss.jandex.IndexView indexView() throws IOExceptionReports anIndexViewfor the Jandex index that describes annotated classes for endpoints.- Returns:
IndexViewdescribing discovered classes- Throws:
IOException- in case of error reading an existing index file or reading class bytecode from the classpath
-
-