public static class AnnotationConfiguration.StdConfiguration extends AnnotationConfiguration implements Serializable
AnnotationConfiguration.StdConfiguration
Modifier and Type | Field and Description |
---|---|
protected AnnotationInclusion |
_defaultInclusion |
protected HashMap<ClassKey,AnnotationInclusion> |
_inclusions |
Constructor and Description |
---|
StdConfiguration(AnnotationInclusion defaultBehavior) |
Modifier and Type | Method and Description |
---|---|
protected AnnotationInclusion |
_inclusionFor(Class<? extends Annotation> annotationType) |
AnnotationInclusion |
getInclusionForClass(Class<? extends Annotation> annotationType)
Method called to figure out how to handle instances of specified annotation
type when used as class annotation.
|
AnnotationInclusion |
getInclusionForConstructor(Class<? extends Annotation> annotationType)
Method called to figure out how to handle instances of specified annotation
type when used as constructor annotation.
|
AnnotationInclusion |
getInclusionForField(Class<? extends Annotation> annotationType)
Method called to figure out how to handle instances of specified annotation
type when used as field annotation.
|
AnnotationInclusion |
getInclusionForMethod(Class<? extends Annotation> annotationType)
Method called to figure out how to handle instances of specified annotation
type when used as method annotation.
|
AnnotationInclusion |
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) |
protected final AnnotationInclusion _defaultInclusion
protected final HashMap<ClassKey,AnnotationInclusion> _inclusions
public StdConfiguration(AnnotationInclusion defaultBehavior)
public AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)
AnnotationConfiguration
getInclusionForClass
in class AnnotationConfiguration
public AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)
AnnotationConfiguration
Note that constructor annotations can never be inherited so this just determines between inclusion or non-inclusion.
getInclusionForConstructor
in class AnnotationConfiguration
public AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)
AnnotationConfiguration
Note that field annotations can never be inherited so this just determines between inclusion or non-inclusion.
getInclusionForField
in class AnnotationConfiguration
public AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)
AnnotationConfiguration
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.
getInclusionForMethod
in class AnnotationConfiguration
public AnnotationInclusion getInclusionForParameter(Class<? extends Annotation> annotationType)
AnnotationConfiguration
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.
getInclusionForParameter
in class AnnotationConfiguration
public void setInclusion(Class<? extends Annotation> annotationType, AnnotationInclusion incl)
protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
Copyright © 2015 fasterxml.com. All rights reserved.