Package com.fasterxml.classmate
Class AnnotationConfiguration.StdConfiguration
java.lang.Object
com.fasterxml.classmate.AnnotationConfiguration
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
- All Implemented Interfaces:
Serializable
- Enclosing class:
AnnotationConfiguration
public static class AnnotationConfiguration.StdConfiguration
extends AnnotationConfiguration
implements Serializable
Simple implementation that can be configured with default behavior
for unknown annotations, as well as explicit behaviors for
enumerated annotation types. Same default is used for both class and
member method annotations (constructor, field and static method
annotations are never inherited)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration
AnnotationConfiguration.StdConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotationInclusion
protected final HashMap
<ClassKey, AnnotationInclusion> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotationInclusion
_inclusionFor
(Class<? extends Annotation> annotationType) getInclusionForClass
(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as class annotation.getInclusionForConstructor
(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.getInclusionForField
(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as field annotation.getInclusionForMethod
(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as method annotation.getInclusionForParameter
(Class<? extends Annotation> annotationType) Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.void
setInclusion
(Class<? extends Annotation> annotationType, AnnotationInclusion incl)
-
Field Details
-
_defaultInclusion
-
_inclusions
-
-
Constructor Details
-
StdConfiguration
-
-
Method Details
-
getInclusionForClass
Description copied from class:AnnotationConfiguration
Method called to figure out how to handle instances of specified annotation type when used as class annotation.- Specified by:
getInclusionForClass
in classAnnotationConfiguration
-
getInclusionForConstructor
Description copied from class:AnnotationConfiguration
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.
- Specified by:
getInclusionForConstructor
in classAnnotationConfiguration
-
getInclusionForField
Description copied from class:AnnotationConfiguration
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.
- Specified by:
getInclusionForField
in classAnnotationConfiguration
-
getInclusionForMethod
Description copied from class:AnnotationConfiguration
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.
- Specified by:
getInclusionForMethod
in classAnnotationConfiguration
-
getInclusionForParameter
Description copied from class:AnnotationConfiguration
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.
- Specified by:
getInclusionForParameter
in classAnnotationConfiguration
-
setInclusion
-
_inclusionFor
-