Class FactoryAutoAnnotationReader

java.lang.Object
dev.derklaro.aerogel.auto.runtime.AbstractAutoAnnotationReader
dev.derklaro.aerogel.auto.internal.runtime.FactoryAutoAnnotationReader
All Implemented Interfaces:
AutoAnnotationReader

@API(status=INTERNAL, since="2.0") public final class FactoryAutoAnnotationReader extends AbstractAutoAnnotationReader
The runtime reader for emitted factory auto annotation entries.
Since:
2.0
  • Constructor Details

    • FactoryAutoAnnotationReader

      public FactoryAutoAnnotationReader()
      Constructs a new factory auto annotation reader instance.
  • Method Details

    • readBindings

      @NotNull public @NotNull Collection<dev.derklaro.aerogel.binding.BindingConstructor> readBindings(@NotNull @NotNull ClassLoader sourceLoader, @NotNull @NotNull DataInputStream source) throws IOException
      Constructs all bindings which were emitted by the associated processing entry during compile time.
      Parameters:
      sourceLoader - the class loader which should be used when needing to load classes.
      source - the data stream to read the binding data from.
      Returns:
      the constructed bindings based on the data stream.
      Throws:
      IOException - if an I/O error occurs.