Class CustomAnnotationRegistry
- java.lang.Object
-
- com.mrivanplays.annotationconfig.core.CustomAnnotationRegistry
-
public final class CustomAnnotationRegistry extends Object
Represents annotation registry for custom annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CustomAnnotationRegistry.AnnotationResolver<T extends Annotation>
Represents annotation resolver, responsible for........static class
CustomAnnotationRegistry.AnnotationResolverContext
Represents aCustomAnnotationRegistry.AnnotationResolver
context.static class
CustomAnnotationRegistry.AnnotationWriter
Represents a wrapped writer.
-
Constructor Summary
Constructors Constructor Description CustomAnnotationRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends Annotation>
voidregister(Class<T> rawAnnoType, CustomAnnotationRegistry.AnnotationResolver<T> annoWriter)
Registers a new annotation type.Map<AnnotationType,CustomAnnotationRegistry.AnnotationResolver<? extends Annotation>>
registry()
Deprecated.internal use only
-
-
-
Constructor Detail
-
CustomAnnotationRegistry
public CustomAnnotationRegistry()
-
-
Method Detail
-
register
public <T extends Annotation> void register(Class<T> rawAnnoType, CustomAnnotationRegistry.AnnotationResolver<T> annoWriter)
Registers a new annotation type.- Type Parameters:
T
- type of annotation registered- Parameters:
rawAnnoType
- raw annotation typeannoWriter
- annotation resolver
-
registry
@Deprecated public Map<AnnotationType,CustomAnnotationRegistry.AnnotationResolver<? extends Annotation>> registry()
Deprecated.internal use only
-
-