Interface AutoProcessingEntry
- All Known Implementing Classes:
AbstractAutoProcessingEntry,FactoryAutoProcessingEntry,ProvidesAutoProcessingEntry
@API(status=STABLE,
since="2.0")
public interface AutoProcessingEntry
An entry which is called by an annotation processor and will create writers for annotation entry bindings which can
be loaded in runtime.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Stringname()Get the name of this auto annotation entry.@NotNull Collection<AnnotationEntryWriter>parseElements(@NotNull Collection<? extends Element> annotatedElements, @NotNull ProcessingEnvironment processingEnvironment) Parses the given elements which are annotated with one of the supported annotations and constructs writers for each element to emit it them into autoconfigure files.@NotNull Collection<Class<? extends Annotation>>Get a collection of annotations which this entry supports.
-
Method Details
-
name
Get the name of this auto annotation entry. The given name will be emitted when writing autoconfiguration files to later identify them when loading the entries from an autoconfiguration file in the runtime.- Returns:
- the name of this auto annotation entry.
-
supportedAnnotations
Get a collection of annotations which this entry supports.- Returns:
- the supported annotations of this entry.
-
parseElements
@NotNull @NotNull Collection<AnnotationEntryWriter> parseElements(@NotNull @NotNull Collection<? extends Element> annotatedElements, @NotNull @NotNull ProcessingEnvironment processingEnvironment) Parses the given elements which are annotated with one of the supported annotations and constructs writers for each element to emit it them into autoconfigure files.- Parameters:
annotatedElements- the elements which are annotated with one of the supported annotations.processingEnvironment- the current processing environment.- Returns:
- a collection of writers to emit each entry into an autoconfigure file.
-