Class AbstractAutoProcessingEntry
java.lang.Object
dev.derklaro.aerogel.auto.processing.AbstractAutoProcessingEntry
- All Implemented Interfaces:
AutoProcessingEntry
- Direct Known Subclasses:
FactoryAutoProcessingEntry,ProvidesAutoProcessingEntry
@API(status=STABLE,
since="2.0")
public abstract class AbstractAutoProcessingEntry
extends Object
implements AutoProcessingEntry
An abstract implementation of an annotation processing entry which takes over the handling of the name and supported
annotations of the entry.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Collection<Class<? extends Annotation>> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAutoProcessingEntry(@NotNull String name, @NotNull Class<? extends Annotation>... supportedAnnotations) Constructs a new abstract processing entry instance. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringname()Get the name of this auto annotation entry.@NotNull Collection<Class<? extends Annotation>>Get a collection of annotations which this entry supports.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.derklaro.aerogel.auto.processing.AutoProcessingEntry
parseElements
-
Field Details
-
name
-
supportedAnnotations
-
-
Constructor Details
-
AbstractAutoProcessingEntry
@SafeVarargs public AbstractAutoProcessingEntry(@NotNull @NotNull String name, @NotNull @NotNull Class<? extends Annotation>... supportedAnnotations) Constructs a new abstract processing entry instance.- Parameters:
name- the name of this entry.supportedAnnotations- the annotations supported by this entry.
-
-
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.- Specified by:
namein interfaceAutoProcessingEntry- Returns:
- the name of this auto annotation entry.
-
supportedAnnotations
Get a collection of annotations which this entry supports.- Specified by:
supportedAnnotationsin interfaceAutoProcessingEntry- Returns:
- the supported annotations of this entry.
-