Class ServiceIndexGenerator.Result
java.lang.Object
io.micronaut.aot.serviceindex.ServiceIndexGenerator.Result
- Enclosing class:
ServiceIndexGenerator
The outcome of one generation: its
status(), one message() for the caller to log, the
entries() to write into the holder and the removals() to delete from it, which the caller
applies whatever the status.- Since:
- 3.2.0
-
Method Summary
Modifier and TypeMethodDescriptionentries()The entries to write into the holder, by entry name, in order: the classes of the packageio.micronaut.aot.serviceindex.generated, and the whole newMETA-INF/services/io.micronaut.core.optim.StaticOptimizations$Loaderfile, which names the generated loader first, then the lines the holder had, without an earlier index loader's.message()One line for the caller to log: what was generated, or why nothing was.removals()The entries to delete from the holder: what an earlier generation left in the packageio.micronaut.aot.serviceindex.generatedandentries()does not replace.status()What happened.
-
Method Details
-
status
-
message
One line for the caller to log: what was generated, or why nothing was. It is informational forServiceIndexGenerator.Status.GENERATEDandServiceIndexGenerator.Status.STOOD_DOWN, and worth a warning forServiceIndexGenerator.Status.FAILED.- Returns:
- the line
-
entries
The entries to write into the holder, by entry name, in order: the classes of the packageio.micronaut.aot.serviceindex.generated, and the whole newMETA-INF/services/io.micronaut.core.optim.StaticOptimizations$Loaderfile, which names the generated loader first, then the lines the holder had, without an earlier index loader's. Each replaces an entry of the same name.They are also non-empty for
ServiceIndexGenerator.Status.STOOD_DOWNorServiceIndexGenerator.Status.FAILEDwhen those remove an earlier index from the holder: then they hold the loader file without the index loader. Callers always apply them.- Returns:
- the entries, unmodifiable
-
removals
The entries to delete from the holder: what an earlier generation left in the packageio.micronaut.aot.serviceindex.generatedandentries()does not replace. A JVM can register one index only, so the earlier one has to go.They are also non-empty for
ServiceIndexGenerator.Status.STOOD_DOWNorServiceIndexGenerator.Status.FAILEDwhen those remove an earlier index from the holder, which then includes the loader file if it names no other loader. Callers always apply them.- Returns:
- the entry names, unmodifiable, sorted
-