Class FactoryAutoEntryProcessor
java.lang.Object
dev.derklaro.aerogel.auto.processing.internal.factory.FactoryAutoEntryProcessor
- All Implemented Interfaces:
AutoEntryProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidemitEntries(@NotNull DataOutput output, @NotNull Collection<? extends Element> annotatedElements) Called if elements annotated with the handled annotations are found in a processing round.@NotNull Class<? extends Annotation> Get the annotation type that is handled by this auto entry processor.
-
Field Details
-
typeEncoder
-
-
Constructor Details
-
FactoryAutoEntryProcessor
-
-
Method Details
-
handledAnnotation
Description copied from interface:AutoEntryProcessorGet the annotation type that is handled by this auto entry processor.- Specified by:
handledAnnotationin interfaceAutoEntryProcessor- 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:AutoEntryProcessorCalled 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:
emitEntriesin interfaceAutoEntryProcessor- 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.
-