|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.classmate.AnnotationConfiguration
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
public static class AnnotationConfiguration.StdConfiguration
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)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.fasterxml.classmate.AnnotationConfiguration |
---|
AnnotationConfiguration.StdConfiguration |
Field Summary | |
---|---|
protected AnnotationInclusion |
_defaultInclusion
|
protected HashMap<ClassKey,AnnotationInclusion> |
_inclusions
|
Constructor Summary | |
---|---|
AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior)
|
Method Summary | |
---|---|
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. |
void |
setInclusion(Class<? extends Annotation> annotationType,
AnnotationInclusion incl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AnnotationInclusion _defaultInclusion
protected HashMap<ClassKey,AnnotationInclusion> _inclusions
Constructor Detail |
---|
public AnnotationConfiguration.StdConfiguration(AnnotationInclusion defaultBehavior)
Method Detail |
---|
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 void setInclusion(Class<? extends Annotation> annotationType, AnnotationInclusion incl)
protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |