Class IndexBuilder

  • All Implemented Interfaces:

    public class IndexBuilder
    extends Object
    implements 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.
    • Constructor Detail

      • IndexBuilder

        public IndexBuilder()
                     throws IOException
        Creates a new instance of the index builder.
        IOException - in case of error checking for the Jandex index files
    • Method Detail

      • indexView

        public org.jboss.jandex.IndexView indexView()
                                             throws IOException
        Reports an IndexView for the Jandex index that describes annotated classes for endpoints.
        IndexView describing discovered classes
        IOException - in case of error reading an existing index file or reading class bytecode from the classpath