Class IndexBuilder

  • All Implemented Interfaces:
    Extension

    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.
        Throws:
        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.
        Returns:
        IndexView describing discovered classes
        Throws:
        IOException - in case of error reading an existing index file or reading class bytecode from the classpath