Package com.fasterxml.classmate
Class AnnotationConfiguration.StdConfiguration
- java.lang.Object
-
- com.fasterxml.classmate.AnnotationConfiguration
-
- com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- AnnotationConfiguration
public static class AnnotationConfiguration.StdConfiguration extends AnnotationConfiguration implements java.io.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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration
AnnotationConfiguration.StdConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationInclusion_defaultInclusionprotected java.util.HashMap<ClassKey,AnnotationInclusion>_inclusions
-
Constructor Summary
Constructors Constructor Description StdConfiguration(AnnotationInclusion defaultBehavior)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnnotationInclusion_inclusionFor(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)AnnotationInclusiongetInclusionForClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Method called to figure out how to handle instances of specified annotation type when used as class annotation.AnnotationInclusiongetInclusionForConstructor(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.AnnotationInclusiongetInclusionForField(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Method called to figure out how to handle instances of specified annotation type when used as field annotation.AnnotationInclusiongetInclusionForMethod(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Method called to figure out how to handle instances of specified annotation type when used as method annotation.AnnotationInclusiongetInclusionForParameter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.voidsetInclusion(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, AnnotationInclusion incl)
-
-
-
Field Detail
-
_defaultInclusion
protected final AnnotationInclusion _defaultInclusion
-
_inclusions
protected final java.util.HashMap<ClassKey,AnnotationInclusion> _inclusions
-
-
Constructor Detail
-
StdConfiguration
public StdConfiguration(AnnotationInclusion defaultBehavior)
-
-
Method Detail
-
getInclusionForClass
public AnnotationInclusion getInclusionForClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from class:AnnotationConfigurationMethod called to figure out how to handle instances of specified annotation type when used as class annotation.- Specified by:
getInclusionForClassin classAnnotationConfiguration
-
getInclusionForConstructor
public AnnotationInclusion getInclusionForConstructor(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from class:AnnotationConfigurationMethod 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:
getInclusionForConstructorin classAnnotationConfiguration
-
getInclusionForField
public AnnotationInclusion getInclusionForField(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from class:AnnotationConfigurationMethod 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:
getInclusionForFieldin classAnnotationConfiguration
-
getInclusionForMethod
public AnnotationInclusion getInclusionForMethod(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from class:AnnotationConfigurationMethod 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:
getInclusionForMethodin classAnnotationConfiguration
-
getInclusionForParameter
public AnnotationInclusion getInclusionForParameter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from class:AnnotationConfigurationMethod 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:
getInclusionForParameterin classAnnotationConfiguration
-
setInclusion
public void setInclusion(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, AnnotationInclusion incl)
-
_inclusionFor
protected AnnotationInclusion _inclusionFor(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
-
-