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
_defaultInclusion
protected 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)
AnnotationInclusion
getInclusionForClass(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.AnnotationInclusion
getInclusionForConstructor(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.AnnotationInclusion
getInclusionForField(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.AnnotationInclusion
getInclusionForMethod(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.AnnotationInclusion
getInclusionForParameter(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.void
setInclusion(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: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
public AnnotationInclusion getInclusionForConstructor(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
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
public AnnotationInclusion getInclusionForField(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
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
public AnnotationInclusion getInclusionForMethod(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
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
public AnnotationInclusion getInclusionForParameter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
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
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)
-
-