Interface AutoAnnotationReader
- All Known Implementing Classes:
AbstractAutoAnnotationReader,FactoryAutoAnnotationReader,ProvidesAutoAnnotationReader
@API(status=STABLE,
since="2.0")
public interface AutoAnnotationReader
Represents an entry which can construct all bindings from an autoconfiguration file that was emitted during compile
time from the associated processing entry.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Stringname()Get the name of the emitted annotation entries which are handled by this reader.@NotNull Collection<dev.derklaro.aerogel.binding.BindingConstructor>readBindings(@NotNull ClassLoader sourceLoader, @NotNull DataInputStream source) Constructs all bindings which were emitted by the associated processing entry during compile time.
-
Method Details
-
name
Get the name of the emitted annotation entries which are handled by this reader.- Returns:
- the name of the handled annotation types of this reader.
-
readBindings
@NotNull @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.
-