Class AnnotationConfiguration
java.lang.Object
com.fasterxml.classmate.AnnotationConfiguration
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnnotationConfiguration.StdConfiguration
Interface for object that determines handling of annotations in regards
to inheritance, overrides.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple implementation that can be configured with default behavior for unknown annotations, as well as explicit behaviors for enumerated annotation types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AnnotationInclusiongetInclusionForClass(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as class annotation.abstract AnnotationInclusiongetInclusionForConstructor(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.abstract AnnotationInclusiongetInclusionForField(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as field annotation.abstract AnnotationInclusiongetInclusionForMethod(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as method annotation.abstract AnnotationInclusiongetInclusionForParameter(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.
-
Constructor Details
-
AnnotationConfiguration
public AnnotationConfiguration()
-
-
Method Details
-
getInclusionForClass
public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as class annotation. -
getInclusionForConstructor
public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.Note that constructor annotations can never be inherited so this just determines between inclusion or non-inclusion.
-
getInclusionForField
public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as field annotation.Note that field annotations can never be inherited so this just determines between inclusion or non-inclusion.
-
getInclusionForMethod
public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as method annotation.Note that method annotations can be inherited for member methods, but not for static methods; for static methods thereby this just determines between inclusion and non-inclusion.
-
getInclusionForParameter
public abstract AnnotationInclusion getInclusionForParameter(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.Note that parameter annotations can be inherited for member methods, but not for static methods; for static methods thereby this just determines between inclusion and non-inclusion.
-