Top Description Inners Constructors Methods
com.fasterxml.classmate

public abstract Class AnnotationConfiguration

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.fasterxml.classmate.AnnotationConfiguration.StdConfiguration
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, java.lang.annotation.Annotation, java.util.*, com.fasterxml.classmate.util.ClassKey

Interface for object that determines handling of annotations in regards to inheritance, overrides.

Nested and Inner Type Summary

Modifier and TypeClass and Description
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.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract AnnotationInclusion
getInclusionForClass(Class<? extends Annotation> annotationType)

Method called to figure out how to handle instances of specified annotation type when used as class annotation.

public abstract AnnotationInclusion
getInclusionForConstructor(Class<? extends Annotation> annotationType)

Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.

public abstract AnnotationInclusion
getInclusionForField(Class<? extends Annotation> annotationType)

Method called to figure out how to handle instances of specified annotation type when used as field annotation.

public abstract AnnotationInclusion
getInclusionForMethod(Class<? extends Annotation> annotationType)

Method called to figure out how to handle instances of specified annotation type when used as method annotation.

public abstract AnnotationInclusion
getInclusionForParameter(Class<? extends Annotation> annotationType)

Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AnnotationConfigurationback to summary
public AnnotationConfiguration()

Method Detail

getInclusionForClassback to summary
public abstract AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)

Method called to figure out how to handle instances of specified annotation type when used as class annotation.

getInclusionForConstructorback to summary
public abstract AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)

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.

getInclusionForFieldback to summary
public abstract AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)

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.

getInclusionForMethodback to summary
public abstract AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)

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.

getInclusionForParameterback to summary
public abstract AnnotationInclusion getInclusionForParameter(Class<? extends Annotation> annotationType)

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.

com.fasterxml.classmate back to summary

public Class AnnotationConfiguration.StdConfiguration

extends AnnotationConfiguration
implements Serializable
Class Inheritance
All Implemented Interfaces
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)

Field Summary

Modifier and TypeField and Description
protected final AnnotationInclusion
protected final HashMap<ClassKey, AnnotationInclusion>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AnnotationInclusion
_inclusionFor(Class<? extends Annotation> annotationType)

public AnnotationInclusion
getInclusionForClass(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForClass.

Method called to figure out how to handle instances of specified annotation type when used as class annotation.
public AnnotationInclusion
getInclusionForConstructor(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForConstructor.

Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.
public AnnotationInclusion
getInclusionForField(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForField.

Method called to figure out how to handle instances of specified annotation type when used as field annotation.
public AnnotationInclusion
getInclusionForMethod(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForMethod.

Method called to figure out how to handle instances of specified annotation type when used as method annotation.
public AnnotationInclusion
getInclusionForParameter(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForParameter.

Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.
public void
setInclusion(Class<? extends Annotation> annotationType, AnnotationInclusion incl)

Field Detail

_defaultInclusionback to summary
protected final AnnotationInclusion _defaultInclusion
_inclusionsback to summary
protected final HashMap<ClassKey, AnnotationInclusion> _inclusions

Constructor Detail

StdConfigurationback to summary
public StdConfiguration(AnnotationInclusion defaultBehavior)

Method Detail

_inclusionForback to summary
protected AnnotationInclusion _inclusionFor(Class<? extends Annotation> annotationType)
getInclusionForClassback to summary
public AnnotationInclusion getInclusionForClass(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForClass.

Doc from com.fasterxml.classmate.AnnotationConfiguration.getInclusionForClass.

Method called to figure out how to handle instances of specified annotation type when used as class annotation.

Annotations
@Override
getInclusionForConstructorback to summary
public AnnotationInclusion getInclusionForConstructor(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForConstructor.

Doc from com.fasterxml.classmate.AnnotationConfiguration.getInclusionForConstructor.

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.

Annotations
@Override
getInclusionForFieldback to summary
public AnnotationInclusion getInclusionForField(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForField.

Doc from com.fasterxml.classmate.AnnotationConfiguration.getInclusionForField.

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.

Annotations
@Override
getInclusionForMethodback to summary
public AnnotationInclusion getInclusionForMethod(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForMethod.

Doc from com.fasterxml.classmate.AnnotationConfiguration.getInclusionForMethod.

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.

Annotations
@Override
getInclusionForParameterback to summary
public AnnotationInclusion getInclusionForParameter(Class<? extends Annotation> annotationType)

Implements abstract com.fasterxml.classmate.AnnotationConfiguration.getInclusionForParameter.

Doc from com.fasterxml.classmate.AnnotationConfiguration.getInclusionForParameter.

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.

Annotations
@Override
setInclusionback to summary
public void setInclusion(Class<? extends Annotation> annotationType, AnnotationInclusion incl)