Class ProvidesAutoEntryProcessor

java.lang.Object
dev.derklaro.aerogel.auto.processing.internal.provides.ProvidesAutoEntryProcessor
All Implemented Interfaces:
AutoEntryProcessor

final class ProvidesAutoEntryProcessor extends Object implements AutoEntryProcessor
  • Field Details

  • Constructor Details

  • Method Details

    • handledAnnotation

      @NotNull public @NotNull Class<? extends Annotation> handledAnnotation()
      Description copied from interface: AutoEntryProcessor
      Get the annotation type that is handled by this auto entry processor.
      Specified by:
      handledAnnotation in interface AutoEntryProcessor
      Returns:
      the annotation type that is handled by this auto entry processor.
    • emitEntries

      public void emitEntries(@NotNull @NotNull DataOutput output, @NotNull @NotNull Collection<? extends Element> annotatedElements) throws IOException
      Description copied from interface: AutoEntryProcessor
      Called if elements annotated with the handled annotations are found in a processing round. Based on the elements the processor can write none, one or multiple entries into the given data output which will be available in runtime for deserialization.
      Specified by:
      emitEntries in interface AutoEntryProcessor
      Parameters:
      output - the output to write serialized data about the annotated elements into.
      annotatedElements - the elements that are annotated with the handled annotation.
      Throws:
      IOException - if an I/O error occurs while serializing the information into the data output.