Class ProvidesAutoAnnotationReader

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

public class ProvidesAutoAnnotationReader extends AbstractAutoAnnotationReader
The runtime reader for emitted provides auto annotation entries.
Since:
2.0
  • Constructor Details

    • ProvidesAutoAnnotationReader

      public ProvidesAutoAnnotationReader()
      Constructs a new provides 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.